Skip to content

Pre-push kustomize-validate via shared script (CI + local)#6

Merged
cshuttle merged 1 commit into
mainfrom
ci/kustomize-validate-script
Jun 28, 2026
Merged

Pre-push kustomize-validate via shared script (CI + local)#6
cshuttle merged 1 commit into
mainfrom
ci/kustomize-validate-script

Conversation

@cshuttle

Copy link
Copy Markdown
Owner

Implements the pre-push tier + single-source-of-truth from #4.

  • scripts/kustomize-validate.sh — render + kubeconform; advisory (no-ops without kustomizations or tools, skips on fetch failure). Tested locally against management (3 built, 2.4s).
  • lefthook/base.ymlpre-push runs the script; propagates to every consumer via the Lefthook remote. Re-run lefthook install per clone to wire the new hook.
  • kustomize-validate.yml — reusable workflow now runs the same script instead of an inline copy → CI and local can't drift.
  • selftest.yml — shellcheck the shared scripts.

🤖 Generated with Claude Code

Implements the pre-push test tier + single-source-of-truth items of #4:
- scripts/kustomize-validate.sh: render + kubeconform, advisory-friendly
  (no-ops without kustomizations/tools). Tested locally vs management (3 built).
- lefthook/base.yml: pre-push hook runs the script (fetched from raw main) —
  local parity with CI, propagates to every consumer via the remote.
- kustomize-validate.yml: reusable workflow now runs the same script (was an
  inline copy) — CI and local can no longer drift.
- selftest.yml: shellcheck the shared scripts (they run everywhere).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cshuttle cshuttle merged commit 2a8e68d into main Jun 28, 2026
7 checks passed
@cshuttle cshuttle deleted the ci/kustomize-validate-script branch June 28, 2026 17:39
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