-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use go-bindata to embed YAML files with CRDs. (#1211)
* Remove the unused crdVersion from CRD. It was never used (verified by eyeballing `git log -p` all the way down), we don't seem to know what it's for, and it has no counterpart in the structs. * Rename the CRD files. This is in preparation for moving to `controller-gen`, which is somewhat opinionated in that it does not allow us to pick the exact file names. I guess we do not really care what these are called anyway - the only place where these names show up is this integration test. * goimports * Use go-bindata to embed YAML files with CRDs. Also add go-bindata to the `generate` target, and a README. * Remove option to write manifests from test. They are the authoritative *source* now. Keep the test around as a way of making sure the file generated by go-bindata is up-to-date. * Update README.
- Loading branch information
Showing
9 changed files
with
364 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# CRD manifests | ||
|
||
Note that some these files can be auto-generated from the authoritative definition in the `kubectl kudo init` | ||
implementation by running `go test -tags integration ./pkg/kudoctl/cmd -v -update`. | ||
These files are currently the authoritative definition for the CRDs (some of these | ||
are used as source by `kubectl kudo init`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Embedded CRDs | ||
|
||
The CRDs provided by this package are embedded into the binary through the file `bindata.go`, | ||
generated by `go-bindata` invoked from the `make generate` target. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters