Skip to content

Feature gates #2361

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

Merged
merged 4 commits into from
May 14, 2021
Merged

Feature gates #2361

merged 4 commits into from
May 14, 2021

Conversation

rjeberhard
Copy link
Member

The intention is to create a reusable feature gating functionality that lets us check in other features (e.g. common mounts) into the main branch prior to that other feature being ready for release. For instance, the feature may lack documentation or a complete set of integration tests.

The goal is to preserve our ability to release the main branch as a bug-fix release at any time and not have to resort to backports to a previous release branch.

The customer can then enable a feature as part of the Helm install for the operator, which is also the pattern that we will follow in our integration tests. Sometime later, the specific feature can either be set to be enabled by default or the checks for the feature gate can be removed.

The feature gating functionality includes a Helm value where the customer (or test cases) can enable a feature, an annotation that can be used on fields in our model classes to designate them as related to the feature, and API's to check if a given feature is enabled prior to invoking feature-related code paths.

Note: I also cleaned up a few spelling errors and removed a few unused strings in the message bundle.

Copy link
Member

@ankedia ankedia left a comment

Choose a reason for hiding this comment

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

LGTM

@rjeberhard rjeberhard merged commit 9ef81b2 into main May 14, 2021
@rjeberhard rjeberhard deleted the feature-gates branch January 31, 2022 14:22
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.

3 participants