-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
CSV versioning #1016
CSV versioning #1016
Conversation
* internal/.../file_util.go: only set fw.Fs if not set
… ConcatCRD paths * commands/.../gen-csv.go: --from-version to specify CSV version to update * doc/sdk-cli-reference.md: update CLI doc to reflect olm-catalog changes * hack/tests/scorecard-subcommand.sh: update CSV name to renamed CSV in testdata * test/test-framework/.../memcached-operator.v0.0.2.clusterserviceversion.yaml: rename to reflect new CSV path structure
which direct gen-csv to update CRD's in the created/updated CSV dir commands/.../scorecard/olm_tests.go: move getCRDs to k8sutil internal/util/k8sutil/crd.go: move getCRDs here from scorecard
internal/util/k8sutil/crd.go: move getCRDs here from scorecard
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.
Other than 1 nit, LGTM
Co-Authored-By: estroz <[email protected]>
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
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
Unrelated to this PR, but I was testing it out and realized I didn't know how to fill in the extra fields that are left empty by the default scaffolding. Maybe should consider filling those will placeholders or adding a link to the message for documentation about CSVs.
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
We should also highlight this new versioned layout in the CHANGELOG. You can do a follow up PR for that if you prefer.
Description of the change: implement CSV directory and file versioning. Added
--update-crds
and--crds-dir
flags so CRD's can optionally be copied fromdeploy/crds
when creating a new CSV or updating an existing CSV. See #900 for more details.Motivation for the change: see #900