Skip to content
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

Do not trigger an update when a parameter is added by an OV upgrade. #1780

Merged
merged 2 commits into from Apr 15, 2021

Conversation

asekretenko
Copy link
Member

@asekretenko asekretenko commented Mar 26, 2021

Now, parameters added by a new operator version (for example, when
a new OV brings in a new required parameter with no default, so that
it is necessary to set a value together with upgrade) no longer trigger
an update plan.

Fixes #1776

@asekretenko asekretenko changed the title [draft] Do not trigger update when a parameter is added by an OV upgrade. Do not trigger an update when a parameter is added by an OV upgrade. Apr 6, 2021
Currently, an operator upgrade that brings in a new required parameter
without a default, is impossible if the operator defines both
"update" and "upgrade" plans.

An upgrade without setting this parameter fails (which is a correct
behaviour); however, an attempt to upgrade while setting the previously
nonexistent parameter also fails due to both plans being triggered,
regardless of the fact that no existing parameter is changed.

This test verifies that an upgrade of such an operator is possible
together with setting a value for the new required parameter,
and that the plan chosen is "upgrade" and not "update".

Signed-off-by: Andrei Sekretenko <asekretenko@d2iq.com>
Now, parameters added by a new operator version (for example, when
a new OV brings in a new required parameter with no default, so that
it is necessary to set a value together with upgrade) no longer trigger
an update plan.

This fixes kudobuilder#1776

Signed-off-by: Andrei Sekretenko <asekretenko@d2iq.com>
Copy link
Member

@ANeumann82 ANeumann82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@asekretenko asekretenko merged commit cc4521e into kudobuilder:main Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Operator with a dependency fails to upgrade when a new parameter is introduced
2 participants