00:00.0 / 00:00.0
README.md2.5 KB
View on GitHubNative Helm Component Example
A minimal, credential-free example of a native Helm component. The chart lives in
components/helm/demo and is configured by stacks/deploy/dev.yaml.
Try It
Run the local chart workflow end to end:
atmos validate stacksatmos helm template demo -s devatmos emulator up kubernetes -s devatmos helm diff demo -s dev --identity local-k3satmos helm apply demo -s dev --identity local-k3satmos emulator exec kubernetes -s dev -- kubectl -n demo get deployment demoatmos emulator exec kubernetes -s dev -- kubectl -n demo get service demoatmos helm delete demo -s dev --identity local-k3satmos emulator down kubernetes -s dev
The atmos test custom command remains available as the CI smoke wrapper for
this same lifecycle.
Render (no cluster, no credentials)
atmos helm template demo -s dev# Render the same chart through a declarative Helm repository.HELM_DEMO_REPO_URL=http://127.0.0.1:8080 atmos helm template demo-repo -s dev
Diff
atmos helm diff (alias plan) shows a real unified diff (via the embedded
helm-diff library — no plugin to install).
Secret values are redacted.
# Offline: capture a baseline render, change a value, then diff against the baseline.atmos helm template demo -s dev --output=baseline.yaml# (edit stacks/deploy/dev.yaml, e.g. set replicaCount: 3)atmos helm diff demo -s dev --from-manifest=baseline.yaml# Against the deployed release (requires a reachable cluster):atmos helm diff demo -s dev# Against a GitOps deployment repository configured under `provision`:atmos helm diff demo -s dev --against=target
Apply
# Install/upgrade the release on the current kubecontext.atmos helm apply demo -s dev# Or deploy directly to the local K3s emulator used by the CI smoke test.atmos emulator up kubernetes -s devatmos helm apply demo -s dev --identity local-k3s
Helm Repositories
The demo-repo component shows the declarative Helm repository path:
components:helm:demo-repo:repositories:- name: localurl: !env HELM_DEMO_REPO_URLchart: local/demo
Use atmos helm repo list to inspect chart repository associations:
atmos helm repo list demo-repo -s dev
See the atmos helm docs for the full
command and flag reference.