-
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
cmd/operator-sdk/olmcatalog: scaffold package.yaml for a set of… #1364
Conversation
and the optional --csv-channel flag to specify in which channel an operator's CSV name should reside in their package manifest internal/pkg/scaffold/olm-catalog: PackageManifest scaffold adds and updates an <operatorname>.package.yaml file in deploy/olm-catalo/<operator-name>, a file used by OLM to manage operator CSV's
…ageManifest using app-operator.package.yaml
specify that c in --csv-channel=c is the package manifests' default channel internal/pkg/scaffold/olm-catalog/package_manifest*.go: add ChannelIsDefault field to PackageManifest scaffold to hold --default-channel value
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.
Few comments but lgtm overall.
Current gen-csv doesn't generate a valid package bundle because it doesn't create a package manifest. This should be fixed by operator-framework/operator-sdk#1364
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
@lilic @hasbro17 @AlexNPavel PTAL |
Update the CHANGELOG for the new flags |
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
Co-Authored-By: Haseeb Tariq <hasbro17@gmail.com>
Co-Authored-By: Haseeb Tariq <hasbro17@gmail.com>
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 overall.
Your call on reformatting the unit tests now or as a TODO in a separate PR.
Description of the change:
cmd/operator-sdk/olmcatalog/gen-csv.go
: Added--csv-channel
to add the CSV name with version supplied to--csv-version
to a package manifestdeploy/olm-catalog/operator-name/{operator_name}.package.yaml
, and--default-channel
to specify that the supplied channel is the default package manifest channel.internal/pkg/scaffold/olm-catalog/package_manifest*.go
: Added aPackageManifest
scaffold to create and update a package manifest file at the file location mentioned above.Motivation for the change: automatically creating and updating a package manifest for OLM users during CSV generation more easily onboards them.