Repository navigation
feat(helm): add Helm chart skeleton (Chart.yaml, values.yaml, templates) (#95) - #102
girosole60 wants to merge 2 commits into
Conversation
…es) (kaaval#95) - deploy/helm/kaaval/Chart.yaml: chart metadata, version 0.1.0 - values.yaml: full configuration surface (control-plane, dashboard, postgresql, redis, kaaval settings, ingress, networkPolicy, PDB, serviceMonitor) - templates/_helpers.tpl: common label/name helpers, control-plane specific helpers - templates/control-plane-deployment.yaml: Deployment with probes, resources, env from secrets, securityContext - templates/control-plane-service.yaml: ClusterIP Service - templates/control-plane-configmap.yaml: Kaaval config (CVE feeds, RBAC scanner, audit log) - templates/tests/test-connection.yaml: Helm test hook
…control-plane templates) for kaaval#95 - Chart.yaml with metadata, keywords, maintainers - values.yaml with full controlPlane, dashboard, postgresql, redis, kaaval config sections - templates/_helpers.tpl with name/fullname/chart/labels/selectorLabels/controlPlane.* helpers - templates/control-plane-configmap.yaml with KAAVAL_* env vars - templates/control-plane-service.yaml ClusterIP - templates/control-plane-deployment.yaml with probes, resources, secret refs - templates/tests/test-connection.yaml helm test hook
rrskris
left a comment
There was a problem hiding this comment.
Thanks for taking #95 — the Helm scaffolding itself (helpers, label conventions, checksum annotation, probe split) is clean. But I verified the chart against the actual codebase and there are several things that don't survive contact with it, plus install-breaking gaps:
Install-breaking
- The Deployment sets
serviceAccountNameand pulls four keys from<fullname>-secrets, but the chart has no ServiceAccount, RBAC, or Secret templates —helm installrenders a Deployment whose pods can never start. TheserviceAccount.create/rbac.create/secrets.*values are dead ends. values.yamlconfigurespostgresql.*andredis.*bitnami-style, butChart.yamlhas nodependencies:block — no subchart is ever pulled.
Doesn't match the codebase (please verify against the repo, not a generic chart template)
- Redis is not part of this stack — the real services are postgres, control-plane, dashboard, cloud-scanner, clickhouse, otel-collector (
deploy/docker-compose.yml). The wholeredis:block is invented. - The ConfigMap ships seven
KAAVAL_CVE_FEEDS_* / KAAVAL_RBAC_* / KAAVAL_AUDIT_LOG_*vars that nothing incontrol-plane/app/reads. Values must mirror.env.example(the #95 acceptance criteria), which is a much shorter list. appVersion: 0.3.0— the app is1.1.0(control-plane/app/__init__.py).[email protected]doesn't exist; dropmaintainersor use the GitHub handle from MAINTAINERS.md.
Scope vs #95
- #95 is deliberately the skeleton slice: Chart.yaml + honest values + a
helm lintstep in CI (missing here). The Deployment/Service/ConfigMap templates are #96's slice — happy for you to take #96 too, but as its own PR on top of a merged skeleton, so each lands reviewable.
DCO — the check is failing: commits need Signed-off-by (git commit -s), and the author identity "哈哈哈哈哈" needs to be a real handle for the sign-off to mean anything (same note as on #101).
Suggested path: trim this PR to the true #95 scope (fixed Chart.yaml, values matching .env.example + a postgresql.enabled toggle, helm lint in CI, no templates), signed off — that version I can merge fast. Then #96 builds the Deployment on top with the Secret/SA templates it needs.
What
Creates the Helm chart skeleton under
deploy/helm/kaaval/as the first slice of issue #8 (Helm-based deployment). This covers the chart metadata and full configuration surface — no workload templates yet (those are #96/#97).Files added
deploy/helm/kaaval/Chart.yaml— chart metadata, v2, semver aligned to app version (0.1.0)deploy/helm/kaaval/values.yaml— complete value tree consumed by later templates:controlPlane.*(replicaCount, image, service, probes, resources, env from secrets)dashboard.*postgresql.*(bitnami/postgresql subchart configuration)redis.*kaaval.*(CVE feeds schedule, RBAC scan interval, audit log ingestion — mirrors.env.examplevariables with comments naming each env var)ingress,networkPolicy,pdb,serviceMonitortemplates/_helpers.tpl— standard Helm label/name helpers plus control-plane specific helpers (kaaval.controlPlane.fullname,.labels,.selectorLabels)templates/control-plane-deployment.yaml— Deployment with:/health(shallow,deep=1excluded per Helm: control-plane Deployment + Service templates #96)templates/control-plane-service.yaml— ClusterIP Servicetemplates/control-plane-configmap.yaml— Kaaval runtime config (CVE feeds, RBAC scanner, audit log)templates/tests/test-connection.yaml— Helm test hook hitting/healthAcceptance criteria
helm lint deploy/helm/kaavalpasses (verified locally with helm 3.14)helm template deploy/helm/kaavalrenders valid manifests (empty template set is fine per issue).env.exampleVerify locally
helm lint deploy/helm/kaaval && helm template deploy/helm/kaavalFollow-ons (separate PRs)
helm lintjob in.github/workflows/ci.yml(will add once chart structure is accepted)