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

Modify default value of overwrite flag in generate-bundle cmd #3280

Merged

Conversation

varshaprasad96
Copy link
Member

Description of the change:
With this PR, "generate bundle" command by default will overwrite
metadata files if already present.

@@ -210,6 +210,6 @@ func (c *bundleCmd) addCommonFlagsTo(fs *pflag.FlagSet) {
fs.StringVar(&c.crdsDir, "crds-dir", "", "Root directory for CustomResoureDefinition manifests")
fs.StringVar(&c.channels, "channels", "alpha", "A comma-separated list of channels the bundle belongs to")
fs.StringVar(&c.defaultChannel, "default-channel", "", "The default channel for the bundle")
fs.BoolVar(&c.overwrite, "overwrite", false, "Overwrite the bundle's metadata and Dockerfile if they exist")
fs.BoolVar(&c.overwrite, "overwrite", true, "Overwrite the bundle's metadata and Dockerfile if they exist")
fs.BoolVarP(&c.quiet, "quiet", "q", false, "Run in quiet mode")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing fragment

Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

Missing fragment. Otherwise, all shows ok.
Could you please add this one?

With this PR, "generate bundle" command by default will overwrite
metadata files if already present.
@varshaprasad96
Copy link
Member Author

@camilamacedo86 Added changelog fragment. Please have a look.

Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 24, 2020
@varshaprasad96 varshaprasad96 merged commit 29182e4 into operator-framework:master Jun 24, 2020
@varshaprasad96 varshaprasad96 deleted the gen-bundle/overwrite branch July 13, 2020 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants