update steering docs and hooks for current project state

This commit is contained in:
Celes Renata
2026-04-11 20:41:57 -07:00
parent 99e17be282
commit 37d5f9b01c
8 changed files with 177 additions and 67 deletions
+16 -10
View File
@@ -1,16 +1,22 @@
---
name: Validate K8s Manifests
description: Validate Kubernetes YAML when manifest files are saved
version: "1.0"
name: Validate Helm & K8s on Save
description: Validate Helm templates and K8s manifests when infrastructure files are saved
version: "2.0"
trigger:
type: onSave
filePattern: "infra/k8s/**/*.yaml"
filePattern: "infra/**/*.{yaml,yml,tpl}"
---
When a Kubernetes manifest YAML file is saved:
When a Helm or K8s manifest file is saved:
1. Parse the YAML to check for syntax errors
2. Verify required fields exist (apiVersion, kind, metadata)
3. Check that namespace is set to `stonks-oracle` for application resources
4. Verify image references point to `ghcr.io/celesrenata/stonks-oracle/`
5. Report any issues found
1. If it's under `infra/helm/`:
- Run `helm template stonks-oracle infra/helm/stonks-oracle -n stonks-oracle` to validate template rendering
- Check for template syntax errors
- Verify the output contains expected resource types (Deployment, Service, Ingress, NetworkPolicy)
- Report any rendering errors concisely
2. If it's under `infra/k8s/`:
- Parse the YAML to check for syntax errors
- Verify required fields exist (apiVersion, kind, metadata)
- Check that namespace is set to `stonks-oracle`
- Report any issues found