Skip to content

kwok managed pods do not respect finalizers and are deleted immediately #926

Answered by wzshiming
tuoyikuan asked this question in Q&A
Discussion options

You must be logged in to vote
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

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wzshiming
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
kind/support Categorizes issue or PR as a support question.
2 participants
Converted from issue

This discussion was converted from issue #925 on January 22, 2024 06:33.