Skip to content

ci: open CRD sync PRs to butler-cli (mirror of charts sync) - #48

Merged
atbagan merged 1 commit into
mainfrom
ci/sync-crds-to-cli
Jun 12, 2026
Merged

atbagan merged 1 commit into
mainfrom
ci/sync-crds-to-cli

Conversation

@atbagan

@atbagan atbagan commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Wires butler-cli into the CRD source-of-truth automation. The cli embeds CRDs in butleradm bootstrap but was never a consumer of the sync, so it drifted from butler-api (the providerconfig credentialsRef CEL plus 7 other CRDs; clustercreationpolicies missing).

sync-crds-to-cli.yaml mirrors sync-crds-to-charts.yaml: on a CRD/type change to main, regenerate CRDs, run butler-cli's hack/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 + a crd-drift CI gate).

Requires: a CLI_SYNC_PAT secret with write access to butler-cli (analogous to CHARTS_SYNC_PAT). Until configured, the create-PR step fails when the workflow fires.

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).
@atbagan
atbagan merged commit 6c94f45 into main Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant