Skip to content

Add catch-all infra CI validation for k8s manifests and Terraform roots - #1607

Merged
phertyameen merged 1 commit into
BlockHaven-Labs:mainfrom
halimasbanna-sketch:feature/infra-ci-manifest-validation
Nov 22, 2026
Merged

phertyameen merged 1 commit into
BlockHaven-Labs:mainfrom
halimasbanna-sketch:feature/infra-ci-manifest-validation

Conversation

@halimasbanna-sketch

Copy link
Copy Markdown
Contributor

Closes #1506

Extends .github/workflows/infra-ci.yml into a single catch-all validation job that discovers at runtime:

  • every Kustomize project under infra/k8s/, k8s/, environments/testnet/k8s/ and infra/monitoring/, rendered with kustomize build and schema-checked with kubeconform;
  • every standalone Kubernetes manifest in those trees, schema-checked directly (covers trees with no kustomization.yaml);
  • every Terraform root (reusable modules excluded) with terraform fmt -check -recursive and terraform init -backend=false && terraform validate.

New trees and roots are picked up automatically, so a new directory cannot silently escape validation.

The new check exposed a pre-existing YAML indentation error in the prometheus-alert-rules ConfigMap payload; that is corrected here so CI passes.

Verified locally with kustomize v5.4.3 and kubeconform v0.6.7: 6 overlay/base builds and 33 manifest files (63 resources) validate cleanly. actionlint passes on the workflow.

Extend infra-ci.yml to discover and validate every k8s tree and Terraform root on each PR. Kustomize projects are built and schema-checked, standalone manifests are schema-checked directly, and each Terraform root gets fmt -check and validate.

Also fix the indentation of the prometheus-alert-rules ConfigMap payload that the new validation exposed.

Closes BlockHaven-Labs#1506
@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

@halimasbanna-sketch is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 22, 2026

Copy link
Copy Markdown

@halimasbanna-sketch Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@phertyameen
phertyameen merged commit 76ad62e into BlockHaven-Labs:main Nov 22, 2026
13 of 16 checks passed
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.

No CI workflow validates that infra/k8s and top-level k8s manifests are syntactically valid on every PR

2 participants