Use for Helm chart work - creating charts, modifying existing charts, values design, testing. For the Astronomer APC repository, see SPEC.md for repository-specific guidance.
See SPEC.md in the repository root for all APC-specific guidance:
uv run pytest usage are all covered thereUse helm-docs comment pattern:
# -- Brief description of what this value does
# @default -- value
myKey: value
myObject:
# -- Nested key description
nestedKey: value
Define common patterns in _helpers.tpl:
{{- define "myapp.labels" -}}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
Create values.schema.json:
{
"$schema": "https://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"replicaCount": {
"type": "integer",
"minimum": 1,
"description": "Number of replicas"
}
}
}
prek run --all-filesFor the Astronomer APC repository, SPEC.md is the authoritative source.
# ✓ GOOD: Standard Kubernetes labels