fix: release-argocd-ownership.sh sends identity-only bindings without client-side validation #98

Merged
ivuorinen merged 1 commit from ivuorinen/fix/release-argocd-ownership-validate into main 2026-10-08 13:20:07 +00:00 AGit
Owner

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.

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.
fix: release-argocd-ownership.sh sends identity-only bindings without client-side validation
All checks were successful
validate / render (pull_request) Successful in 2m9s
validate / hooks (pull_request) Successful in 3m37s
fae290b9f8
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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ivuorinen/turingpi-cluster!98
No description provided.