New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
operator: Move resources cleanup from install to upgrade #8011
Conversation
When an upgrade is kicked there are resources that needs to be deleted otherwise the operator continues updating them. This should be a step in the upgrade package rather than a hack in the install action. We have now another step (cleanup) doing this task Dont perform scale.up step, it makes no sense since the PostUpgradeRun phase will scale up the DeploymentConfigs. Remove todo DeploymentConfig and BuildConfig as part of the cleanup step in upgrade Remove invalid trigger from todo BuildConfig
Now that we need the config file to install the syndesis app, we also need a way to change it using flags
} | ||
} | ||
|
||
time.Sleep(5 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because there is a race condition with deleting the resources and then the resources being created in the install action. It might be gone by now, or it might be only in my environment. I can remove it and see if it works.
I have difficulty understanding why ce5d6f9 is included in this? Also can you create the pull request against the |
@zregvart 73d3a81 introduced the use of configuration pkg in the before action of all install commands, including This happened today to me for
When fixing bugs I like to do the changes in the branch I am fixing. Call me paranoid but master and 1.9.x has diverged in such a way, that there is no guarantee that all the conditions needed to reproduce the bug reported for 1.9.x, are going to be in master. So if there is no strong argument for stop doing it this way, I would like to keep my PR and manually backport it to master |
@lgarciaaco the issue you mention for 73d3a81 should be fixed with #8013 (#8009) and could use with your review. Based on
So you can see that issues like #7983 lead having it solved on The development happens on |
@heiko-braun can I ask you that you have this conversation with @lgarciaaco, I don't think I have anything else to add other than what I said in the comment. |
After talking to @zregvart it is clear that changes should be done in master first. I am wrong he is right :) |
When an upgrade is kicked there are resources that needs to be deleted otherwise the operator continues updating them. This should be a step in the upgrade package rather than a hack in the install action. We have now another step (cleanup) doing this task
Don't perform scale.up step, it makes no sense since the PostUpgradeRun phase will scale up the DeploymentConfigs.
Remove todo DeploymentConfig and BuildConfig as part of the cleanup step in upgrade
Remove invalid trigger from todo BuildConfig
Fixes https://issues.redhat.com/browse/ENTESB-13111