Skip to content

install: always re-apply CRDs and RBAC on --deploy-ate-system - #698

Open
NekoPunch (orangeCatDeveloper) wants to merge 1 commit into
agent-substrate:mainfrom
orangeCatDeveloper:fix-install-rbac-upgrade
Open

install: always re-apply CRDs and RBAC on --deploy-ate-system#698
NekoPunch (orangeCatDeveloper) wants to merge 1 commit into
agent-substrate:mainfrom
orangeCatDeveloper:fix-install-rbac-upgrade

Conversation

@orangeCatDeveloper

Copy link
Copy Markdown

Fixes #697

Summary

deploy_ate_system gated manifests/ate-install/generated/ behind ensure_crds, whose existence check skips the directory on any upgrade — stranding CRD schemas and, since role.yaml has no other apply path, all ClusterRoles at first-install state. A controller image needing a new permission then deadlocks on informer start while the rollout reports success.

deploy_ate_system now calls deploy_crds unconditionally (kubectl apply is idempotent). The demo scripts and per-component deploy flags keep ensure_crds, where "make sure they exist" is the intended semantic.

Test plan

  • Reproduced on a 4-day-old kind cluster: upgrading the control plane deadlocked ate-controller on cannot list networkpolicies; manually applying role.yaml unblocked it.

  • With this fix, the same install-ate-kind.sh --deploy-ate-system run prints the deploy_crds step and re-applied the drifted manifests (actortemplates.ate.dev configured, workerpools.ate.dev configured, ClusterRoles applied); cluster reconciles normally.

  • bash -n hack/install-ate.sh.

  • Tests pass

  • Appropriate changes to documentation are included in the PR (none needed)

ensure_crds skips the generated manifests once the CRDs exist, so an
upgrade never refreshed CRD schemas or ClusterRoles; a controller
needing a new permission deadlocked on informer start while the
rollout reported success. Fixes agent-substrate#697.
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.

install-ate.sh: --deploy-ate-system never re-applies CRDs/RBAC on upgrade

1 participant