Skip to content

Commit 8f123b3

Browse files
committed
[fix] evict pods in namespace
Signed-off-by: Stepan Paksashvili <[email protected]>
1 parent 086457f commit 8f123b3

File tree

1 file changed

+2
-1
lines changed
  • common-hooks/storage-class-change

1 file changed

+2
-1
lines changed

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)