fix: release-argocd-ownership.sh sends identity-only bindings without client-side validation #98
Loading…
Reference in a new issue
No description provided.
Delete branch "ivuorinen/fix/release-argocd-ownership-validate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
kubectl validates each input object against its schema before sending, and an identity-only RoleBinding or ClusterRoleBinding fails it for lacking the required roleRef, so the first real run applied nothing. The input is partial on purpose; the API server still validates the object the apply produces, which keeps the roleRef argocd-controller co-owns. With --validate=false the release ran against the cluster for all 54 objects.
The test's stub kubectl now refuses a binding without roleRef unless validation is off, as the real one does, and the fixture build carries a ClusterRoleBinding.