Skip to content

Is Machine Deletion Phase Hooks still recommanded? #10390

Answered by sbueringer
mogliang asked this question in Q&A
Discussion options

You must be logged in to vote

The current supported way for pre-drain and pre-terminate hooks is to use these annotations:

// PreDrainDeleteHookAnnotationPrefix annotation specifies the prefix we
// search each annotation for during the pre-drain.delete lifecycle hook
// to pause reconciliation of deletion. These hooks will prevent removal of
// draining the associated node until all are removed.
PreDrainDeleteHookAnnotationPrefix = "pre-drain.delete.hook.machine.cluster.x-k8s.io"
// PreTerminateDeleteHookAnnotationPrefix annotation specifies the prefix we
// search each annotation for during the pre-termi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mogliang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants