-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Crossplane unfortunately doesn't have packaged CRDs, so you can't just read them out of the helm repository. Instead this creates a cluster with kind, then installs the helm chart, then dumps all crds that helm chart created, then deletes the cluster. Right now this dumps all the CRDs, but for a more complex use case, you can install all the dependencies first, then check what CRDs are created, then install the target package, then dump the crds, ignore those that already existed. Example of how to run the command: bash -x scripts/helm_to_kcl.sh https://charts.crossplane.io/stable/crossplane-1.17.0.tgz crossplane v1.17.0 Signed-off-by: Daniel Rogers <[email protected]>
- Loading branch information
1 parent
d6b8a0d
commit 06c4b7e
Showing
20 changed files
with
16,560 additions
and
10,571 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Regeneration steps | ||
|
||
``` | ||
./scripts scripts/helm_to_kcl.sh https://charts.crossplane.io/stable/crossplane-<version>.tgz crossplane v<version> | ||
sed -ie 's/version = .*/version = "<version>"/' crossplane/kcl.mod | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
22,584 changes: 15,591 additions & 6,993 deletions
22,584
crossplane/[email protected] → crossplane/crds/crossplane.yaml
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.