Skip to content

Commit fd2a647

Browse files
authored
[fix] evict pods in namespace (#79)
Signed-off-by: Stepan Paksashvili <stepan.paksashvili@flant.com>
1 parent 086457f commit fd2a647

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • common-hooks/storage-class-change

common-hooks/storage-class-change/hook.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ func storageClassChange(ctx context.Context, input *pkg.HookInput, args Args) er
190190
// if someone deleted pvc then evict the pod.
191191
evict := &policyv1.Eviction{
192192
ObjectMeta: metav1.ObjectMeta{
193-
Name: pod.Name,
193+
Name: pod.Name,
194+
Namespace: pod.Namespace,
194195
},
195196
}
196197

0 commit comments

Comments
 (0)