Skip to content

Custom Provider destructive update behavior #2848

Answered by negz
samidbb asked this question in Q&A
Discussion options

You must be logged in to vote

My thinking here is:

  • Fields that are immutable should be marked as such, and some machinery (either native API server support if it ever comes, or an admission control webhook) should prevent updating them. Sadly this does not exist today and thus as you've noticed, we silently accept what are effectively no-op update operations.
  • Destructive operations shouldn't be implicit; we shouldn't delete and recreate something when someone appeared to ask for an update. Instead I think we should require folks to delete and recreate the managed resource. This is arguably a little imperative rather than declarative, but I worry about potentially losing state without a "hey I'm actually going to dele…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wcarlsen
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by luebken
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
5 participants