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

CSV versioning #1016

Merged
merged 46 commits into from
Feb 20, 2019
Merged

CSV versioning #1016

merged 46 commits into from
Feb 20, 2019

Conversation

estroz
Copy link
Member

@estroz estroz commented Jan 28, 2019

Description of the change: implement CSV directory and file versioning. Added --update-crds and --crds-dir flags so CRD's can optionally be copied from deploy/crds when creating a new CSV or updating an existing CSV. See #900 for more details.

Motivation for the change: see #900

* 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
@estroz estroz added kind/feature Categorizes issue or PR as related to a new feature. needs discussion olm-integration Issue relates to the OLM integration labels Jan 28, 2019
@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 28, 2019
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 5, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 6, 2019
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
Copy link
Contributor

@AlexNPavel AlexNPavel left a 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

doc/sdk-cli-reference.md Outdated Show resolved Hide resolved
doc/sdk-cli-reference.md Outdated Show resolved Hide resolved
Co-Authored-By: estroz <ericstroczynski@gmail.com>
Copy link
Member

@lilic lilic left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@joelanford joelanford left a 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.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 17, 2019
doc/sdk-cli-reference.md Outdated Show resolved Hide resolved
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 18, 2019
Copy link
Contributor

@hasbro17 hasbro17 left a 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.

@estroz estroz merged commit 831baea into operator-framework:master Feb 20, 2019
@estroz estroz deleted the csv-versioning branch February 20, 2019 16:43
estroz added a commit that referenced this pull request Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs discussion olm-integration Issue relates to the OLM integration size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants