-
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
*: fix gen-csv to copy CRD manifests with any name #2015
*: fix gen-csv to copy CRD manifests with any name #2015
Conversation
026df29
to
3245561
Compare
/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.
PR tested locally.
- Create a CR without the prefix and checked that it was not copied
- Create a CRD and checked that it was copied with success.
Worked 100% fine.
WDYT about we track an issue for we are able to impl test for olm commands? |
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
@camilamacedo86 I know we have unit tests to test out the CSV scaffolding logic but I don't think we have e2e tests that tests out the path of the |
Done : #2016 |
* *: fix gen-csv to copy CRD manifests with any name (#2015) (cherry picked from commit 5d22a11) * internal/pkg/scaffold/olm-catalog/csv_updaters.go: fix applying owned CRDs (#2017) * internal/pkg/scaffold/olm-catalog/csv_updaters.go: fix applying owned CRDs * CHANGELOG.md: add line for #2017 (cherry picked from commit 5bfe311)
Description of the change:
Relax
_crd.yaml
suffix check when copying over CRD manifests foroperator-sdk olm-catalog gen-csv --update-crds
Motivation for the change:
Fixes #1980