-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Remove legacy generate and bundle commands #3414
Conversation
cmd/operator-sdk/bundle/cmd.go
Outdated
@@ -51,7 +51,6 @@ More information about the integration with OLM via SDK: | |||
https://sdk.operatorframework.io/docs/olm-integration/legacy | |||
` | |||
cmd.AddCommand( |
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.
You can remove the entire bundle
subcommand for legacy projects.
@@ -1,261 +0,0 @@ | |||
// Copyright 2019 The Operator-SDK Authors |
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.
This package still needs to stick around for the new CSV bases to work. #2792 should be updated to remove these. You can just leave this package in internal/generate/olm-catalog/descriptor
for now.
22108bb
to
ad78b43
Compare
Removed legacy "generate csv/packagemanifests/bundle", and "bundle create/validate" commands. Also removed associated scaffolding packages for these commands in "internal/generate/olm-catalog".
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.
Two nits about refactoring functions and fix lint errors about unused fields, otherwise LGTM
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
It shows great for me 👍
I cannot see anything else that is missing get done here.
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.
Checked out by running with these changes locally.
/lgtm
Thanks for the quick reviews everyone. |
Description of the change:
Removed the following legacy cmds:
generate csv
generate packagemanifests
generate bundle
bundle create
bundle validate
Also removed associated scaffolding packages for these commands in
internal/generate/olm-catalog
.Motivation for the change:
From #3327 : Prepare SDK CLI for
1.0.0
releaseTODO:
run packagemanifests
cmd usinginternal/generate/olm-catalog
.Remove legacy OLM integration docs_ https://sdk.operatorframework.io/docs/olm-integration/legacy/generate bundle
cmdbundle <create/validate>
cmd