Skip to content

Finalizer example possible bug #4290

Closed Answered by camilamacedo86
lorenzofelletti asked this question in Support
Discussion options

You must be logged in to vote

Hi @lorenzofelletti,

The best approach would be to refactor the code of the CronJob and MultiVersion samples to follow the structure generated by the DeployImage plugin (which scaffolds the code to manage an image provided via the command line).

Example:

The best practice is to fetch the resource before updating it. This avoids scenarios where an update fails due to an intermediate change, which could cause the reconciliation process to restart. Refer to the example below for guidance:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by camilamacedo86
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
Support
Labels
None yet
2 participants