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

API OperatorFlagsMergeStrategy #2753

Conversation

SrinivasAtmakuri
Copy link
Collaborator

JIRA: https://issues.redhat.com/browse/ARO-1885

Which issue this PR addresses:

Fixes

What this PR does / why we need it:

Test plan for issue:

Is there any documentation that needs to be updated for this PR?

@bennerv
Copy link
Collaborator

bennerv commented Apr 20, 2023

Is there a reason we need a flag to merge these? IMO it should be default behavior to take whatever is present within the cluster document + whatever our defaults are, and merge them together.

I don't really like adding additional series of flags because they're slowly getting out of control.

Essentially my question would be: do we see ourselves ever using the "reset" functionality? If so, I understand the change, but I don't know when we'd ever purposefully use it.

@hawkowl what are your thoughts?

Copy link
Member

@petrkotas petrkotas left a comment

Choose a reason for hiding this comment

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

Hi @SrinivasAtmakuri I have two questions and one humble request. Would you please cover this function with unit test to verify it is doing what is expected? Thank you

pkg/api/admin/operatorflags.go Show resolved Hide resolved
pkg/api/admin/operatorflags.go Outdated Show resolved Hide resolved
OperatorFlags: api.OperatorFlags{"aro.feature1.enabled": "false"},
},
},
body: []byte(`{"operatorflagsmergestrategy":"merge"}`),
Copy link
Member

Choose a reason for hiding this comment

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

@SrinivasAtmakuri would you please also add the reset strategy, to make it explicit and show that it works please?

@SrinivasAtmakuri
Copy link
Collaborator Author

Adding more test cases and retesting the code. Will update once done. Thanks.

@SrinivasAtmakuri
Copy link
Collaborator Author

deprioritized, marking this RP for closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skippy pull requests raised by member of Team Skippy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants