-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[olm] Remove olm-namespace flag from install sub-command #3670
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
[olm] Remove olm-namespace flag from install sub-command #3670
Conversation
Remove 'olm-namespace' flag from 'operator-sdk olm install' command. Reason: The OLM manifests which are used to install olm-operator have hardcoded namespace value.
@@ -35,8 +35,6 @@ func newInstallCmd() *cobra.Command { | |||
} | |||
|
|||
cmd.Flags().StringVar(&mgr.Version, "version", olm.DefaultVersion, "version of OLM resources to install") | |||
cmd.Flags().StringVar(&mgr.OLMNamespace, "olm-namespace", olm.DefaultOLMNamespace, |
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.
mgr.OLMNamespace
is still used in InstallVersion
. We should remove this field from the manager's struct and pass the hard-coded default olm
.
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.
mgr.OLMNamespace
is still used by status and uninstall commands though
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.
m.initialize()
would fill the DefaultOLMNamespace
value in manager's struct. So at least for install
command, the mgr.OLMNamespace
would always be olm
when InstallVersion
is called.
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.
/lgtm
Help looks good
The flag is gone so trying to use it will print the usage.
|
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.
/lgtm
Description of the change:
Remove 'olm-namespace' flag from 'operator-sdk olm install' command.
Motivation for the change:
The olm manifests published in github have a hardcoded
namespace value. Hence, the olm operators can only be installed in
olm
namespace using
operator-sdk olm install
command.Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs