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

Add feature gates infrastructure #90

Merged
merged 4 commits into from
Jun 8, 2023

Conversation

everettraven
Copy link
Collaborator

Description

  • Adds a new package called features that contains the infrastructure required for adding feature gates to catalogd
  • Refactors the catalogd controller flags to enable adding the --feature-gate flag

Motivation

  • Allow us to get started and used to using feature gates early

Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
cmd/manager/main.go Outdated Show resolved Hide resolved
pkg/features/features.go Outdated Show resolved Hide resolved
cmd/manager/main.go Outdated Show resolved Hide resolved
cmd/manager/main.go Outdated Show resolved Hide resolved
opts.BindFlags(flagSet)

// set up feature gate flags. This has to use a pflag flagset
pFlagSet := pflag.NewFlagSet("featuregate-flagset", pflag.ExitOnError)
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I would put the feature gates in a separate flagset.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tried to address this in 353165a - let me know if that is insufficient

Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
@joelanford joelanford merged commit 9fe45a6 into operator-framework:main Jun 8, 2023
4 checks passed
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.

None yet

3 participants