-
How to use it?
What happened?After a pod with non-empty finalizers has be scheduled to a kwok managed node, it will be deleted immediately even through no one external removes the finalizers.
What did you expect to happen?The kwok managed pods respect the custom finalizers and do not clean them until their owner removes it, just like normal pod (or any k8s api resource). How can we reproduce it (as minimally and precisely as possible)?
Anything else we need to know?No response Kwok version$ kwok --version
kwok version v0.3.0 go1.20.3 (linux/amd64) OS version
```console
On Linux:$ cat /etc/os-release paste output here$ uname -a paste output hereOn Darwin:$ uname -a paste output hereDarwin C02F52S4ML85 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64 On Windows:C:> wmic os get Caption, Version, BuildNumber, OSArchitecture paste output here
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
apiVersion: kwok.x-k8s.io/v1alpha1
kind: Stage
metadata:
name: pod-delete
spec:
resourceRef:
apiGroup: v1
kind: Pod
selector:
matchExpressions:
- key: '.metadata.deletionTimestamp'
operator: 'Exists'
- key: '.metadata.finalizers'
operator: 'DoesNotExist'
next:
delete: true Using this instead of the original should be the effect you want. See more |
Beta Was this translation helpful? Give feedback.
-
/remove-kind bug |
Beta Was this translation helpful? Give feedback.
-
Oh.. Thanks a lot~ |
Beta Was this translation helpful? Give feedback.
Using this instead of the original should be the effect you want. See more