-
Notifications
You must be signed in to change notification settings - Fork 350
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
Refactors the deploy directory to make config directory single source of CRD truth #1978
Conversation
Wow, that's a piece of work! I like it also brings things like automated It looks good overall, the main point is that it seems a different version of |
24fe6e6
to
1be457d
Compare
It was using controller-gen 0.4.0 which I had previously compiled locally. The binary uses runtime/debug/BuildInfo to determine the version number and for local compilations this is generated as 'devel'. Wrapping the module in an outer module allows the preferred version to be printed (see golang/go#29228 (comment)). So controller-gen version fixed, version upgraded to 0.4.1 and no more surprises in the CRDs :-) |
Thanks @phantomjinx, that fixes it 👍🏼. I've checked downstream, and the build calls the Once CI passes, it should be good to go, and we'll update downstream build. |
924e336
to
282d3d0
Compare
@astefanutti |
@phantomjinx thanks. Yes that inverted logic is a mistake of mine 🤦🏼! That looks much better now 👍🏼. |
2250fb3
to
84451c3
Compare
… basis for CSV * deploy resources duplicated in config now removed * multidir * Provides a vfs-gen virtual resource generator that generates from separate directories but doesn't reference those directories * config/manifest/...clusterserviceversion.yaml * Adds in extra metadata * deploy/olm-catalog/... * The creation of the CSV is retained for older OLM installations with bundle generation for newer ones. * Since operator-sdk is now used for csv generation, the metadata and naming has changed in minor ways: * camel-k-dev.package.yaml * renaming of deploy crd files * pkg/base/root.go * Provides global var GoModDirectory that defines the location of the root module directory * pkg/resources/... * Moves code out of deploy into resources since its independent of both deploy and config directories * Provides a ResourcesWithPrefix function for finding all resources with a specific prefix saving on duplicated code * go:generate annotation used for executing vfs-gen * Makefile * go generate used for executing vfs-gen virtual resource generation * add_createdAt.sh adds in createdAt datetimes for CSV which is not generated by the operator-sdk * script/build-olm.sh * Updates from operator-sdk generate command in older version to new command in 1.0+ * script/gen_crd.sh * Makes config the destination for crd generation * Renames the deploy/olm-catalog crd copies to match that created when running `make build-olm` * script/gen_olm.sh * Migrates to new command for generating CSV using operator-sdk * Uses triage directory to avoid needless format changes to CRDs already generated by controller-gen
* On Darwin, sed requires an extra argument for the backup file whilst on Linux is does not.
* Specify env var KAMEL_LOCAL to install kamel from local build rather than fetching it from OLM (adds --olm=false to install command)
84451c3
to
a32904d
Compare
retest this please |
Thanks! |
Feature #1820: Moves the CRDs to reside in the config directory in line with operator-sdk and kustomize configurations so removing those resource from the deploy directory. With move to using operator-sdk 1.0.0+ for CRD, CSV and bundle generation, minor changes and fixes have had to be implemented to keep artifacts in line with existing requirements but also to update them where necessary.
Release Note