Repository navigation
ci: open CRD sync PRs to butler-cli (mirror of charts sync) - #48
Merged
Merged
Conversation
butler-cli embeds the CRDs in `butleradm bootstrap` but was never a consumer of the CRD sync automation, so it drifted from butler-api (the providerconfig CEL and 7 other CRDs). Mirror sync-crds-to-charts.yaml: on a CRD/type change, run the cli's hack/sync-crds.sh and open a PR in butler-cli. Now both CRD consumers (the Helm chart and the cli's embedded manifests) are derived from butler-api. Requires a CLI_SYNC_PAT secret with write access to butler-cli (like CHARTS_SYNC_PAT).
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires butler-cli into the CRD source-of-truth automation. The cli embeds CRDs in
butleradm bootstrapbut was never a consumer of the sync, so it drifted from butler-api (the providerconfigcredentialsRefCEL plus 7 other CRDs;clustercreationpoliciesmissing).sync-crds-to-cli.yamlmirrorssync-crds-to-charts.yaml: on a CRD/type change to main, regenerate CRDs, run butler-cli'shack/sync-crds.sh, and open a PR in butler-cli. Both CRD consumers (Helm chart + cli embedded manifests) are now derived from butler-api.Pairs with butlerdotdev/butler-cli#59 (adds the cli's
hack/sync-crds.sh+ acrd-driftCI gate).Requires: a
CLI_SYNC_PATsecret with write access to butler-cli (analogous toCHARTS_SYNC_PAT). Until configured, the create-PR step fails when the workflow fires.