Repository navigation
feat: native Helm components (experimental) - #2667
Merged
Merged
Conversation
…hot) Snapshot of in-progress Kubernetes-native-component work prior to merging origin/main (which contains the Atmos Git foundation, #2597). Lint findings in the new code were resolved (static error sentinels, named constants, perf.Track, complexity refactors, gosec file modes, file-length split into executor_bulk.go). pkg/auth/cloud/gcp/files.go was fast-forwarded to its origin/main state to clear pre-merge lint noise. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ative-component # Conflicts: # pkg/hooks/event.go
…gets Add a reusable target-provisioner registry (pkg/provisioner/target) and a ProvisionArtifact model so a component can render once and deliver to a selectable destination by kind. Implement the git target: it consumes the merged pkg/git service to clone-reconcile a managed git.repositories.<name>, write the rendered manifests under a templated path (replacing the managed subtree), path-scoped commit with provenance trailers, and push with retry; pull_request is deferred. Wire apply/deploy through provision.targets: kind 'kubernetes' keeps the inline cluster SDK apply, any other kind routes the artifact through the registry, with a new --target flag (precedence: --target > provision.default > implicit cluster). Add typed provision.targets schema (Go + stack-config/manifest JSON schemas), render the provision section so target path/commit templates materialize, plus an example, docs, a changelog blog post, and a roadmap milestone. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Incremental work on the native Kubernetes component feature: add an `atmos kubernetes validate` subcommand (with docs), guard the git target's writeArtifact against root/empty paths so a managed-path clear can never wipe the repository (new ErrGitTargetPathInvalid/ErrGitArtifactWrite sentinels), route operation flags through the standard parser, and refresh component docs, examples, and CLI golden snapshots accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…nent' into osterman/kubernetes-native-component
…ative-component # Conflicts: # tests/fixtures/scenarios/native-ci/github-output.txt # tests/fixtures/scenarios/native-ci/github-step-summary.txt
- validate: bound server-side dry-run with a 5m context timeout so a
hung Kubernetes API call cannot block indefinitely
- git target: harden writeArtifact root-path guard with filepath.Clean
so dot-equivalent paths ("./", "a/..") cannot reach os.RemoveAll and
wipe the worktree; extend regression test coverage
- docs: add required description frontmatter and Screengrab block to the
kubernetes validate command page
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…test Acceptance Tests failed on all platforms because the kubernetes-native component PR added five new *SectionName constants without wiring them into the schema-coverage ratchet, and a path test assumed Unix-absolute paths. - datafetcher: classify the new section constants in schema_section_coverage_test.go — `kubernetes` as a top-level manifest section (alongside terraform/helmfile/packer/ansible) and the Kubernetes component sub-fields `provider`/`paths`/`manifests`/`render` as non-manifest sections (matching the packer `template` / ansible `playbook`/`inventory` precedent) - schema: model `kubernetes` in the canonical website manifest schema (top-level section, components.kubernetes, and the kubernetes_* defs), mirroring the already-updated embedded schema so TestSchemaCoversAllSections stays green instead of tracking a knownSchemaGap - kubernetes: fix TestManifestPathHelpers on Windows — "/tmp/absolute.yaml" is not absolute without a drive letter, so use t.TempDir() which is absolute on every OS Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add an end-to-end test tier for the Kubernetes native component that runs against a real kube-apiserver+etcd control plane (controller-runtime envtest). The control-plane binaries are provisioned on demand by the tests via the Atmos toolchain using an inline registry.ToolRegistry — no Makefile target, no setup-envtest, no atmos.yaml. Gated behind the `envtest` build tag and limited to Linux/macOS (there is no official kube-apiserver build for Windows). A new [envtest] CI job runs the tier on ubuntu and macos. The tier covers the client.go behavior the in-memory fake dynamic client cannot: server-side-apply field ownership, dry-run diff semantics, real discovery/RESTMapper resolution, and a CRD round-trip. Also bundles expanded unit-test coverage across the kubernetes component, describe-affected, stack processor, component graph, and git provisioner. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ob name The envtest job invoked `go test` directly, bypassing the Makefile's global CGO_ENABLED=0. With CGO on, a transitive dependency of the Atmos toolchain (bearsh/hid → libudev, via the auth/webauthn chain) tried to compile and failed on runners that lack libudev, breaking the build. Set CGO_ENABLED=0 to match Atmos's build policy; those CGO paths are unused by the tests. Also rename the job to "[Kubernetes] control plane" — leading with the subsystem and what is exercised, rather than the cryptic "[envtest]" label. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Match the lowercase bracket-label convention of the other jobs ([k3s], [mock-*]) and describe the job as the Kubernetes end-to-end test tier. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ative-component # Conflicts: # pkg/utils/log_utils_test.go # tests/preconditions.go
…nent' into osterman/helm-component-targets # Conflicts: # errors/errors.go # internal/exec/describe_affected_components.go # internal/exec/stack_processor_merge_test.go # internal/exec/stack_processor_process_stacks.go # internal/exec/stack_processor_process_stacks_helpers_test.go # pkg/datafetcher/schema/atmos/manifest/1.0.json # pkg/hooks/event.go # pkg/hooks/hooks.go # tests/fixtures/scenarios/native-ci/github-output.txt # tests/fixtures/scenarios/native-ci/github-step-summary.txt # tests/snapshots/TestCLICommands_atmos_--chdir_config_isolation.stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_component_mock_-s_dev_(stack-names_example).stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_component_mock_-s_production_(stack-names_example).stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_dev_(native-terraform_example).stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_my-legacy-prod-stack.stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_no-name-prod.stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_production_(native-terraform_example).stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_config.stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_config_-f_yaml.stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_config_imports.stdout.golden # tests/snapshots/TestCLICommands_atmos_describe_configuration.stdout.golden # tests/snapshots/TestCLICommands_describe_component_from_nested_dir_discovers_atmos.yaml_in_parent.stdout.golden # tests/snapshots/TestCLICommands_describe_component_with_component_name_(backward_compatibility).stdout.golden # tests/snapshots/TestCLICommands_describe_component_with_current_directory_(.).stdout.golden # tests/snapshots/TestCLICommands_describe_component_with_relative_path.stdout.golden # tests/snapshots/TestCLICommands_describe_component_with_stack_flag.stdout.golden # tests/snapshots/TestCLICommands_indentation.stdout.golden # tests/snapshots/TestCLICommands_secrets-masking_describe_config.stdout.golden # website/docs/ci/job-summaries.mdx
Assert the appended affected entry (component/stack/type) so the test is a meaningful regression guard instead of only checking no-error/non-nil. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
kubernetes plan/diff now emit a per-object unified diff in the terminal and a collapsible "Kubernetes Diff" block in the CI job summary (GitHub ```diff syntax). The diff was already computed in client.Diff() (live vs dry-run after normalizeForDiff) and discarded; this retains it via objectResult.Diff -> KubernetesObjectCIResult.Diff -> the summary template. Secret objects are omitted from the diff so their data never reaches the unmasked job summary. Mirrors the Terraform convention of a secondary <details> block, and reuses Terraform's tail-preserving truncation, extracted into the shared pkg/ci/internal/plugin.TruncateDetail helper. Includes unit + envtest coverage and updated user-facing docs (CI templates/ summary variables, job summaries, kubernetes command/usage pages, launch blog). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Address CodeRabbit review on PR #2607: an inline ` ```diff ` with single-backtick delimiters renders/copies poorly. Reword to "diff block using GitHub's `diff` fenced code syntax". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ative-component # Conflicts: # .github/workflows/test.yml # tests/preconditions.go
…ative-component # Conflicts: # website/docs/stacks/components/metadata.mdx
The Check Markdown Links job failed (exit 2) on two timeouts for https://no-color.org/ (referenced from docs/prd/help-system-architecture.md and docs/prd/io-handling-strategy.md) — even with max_retries=3 and a 60s timeout. The link is valid (the NO_COLOR standard site); it just intermittently times out from CI, like the other excluded hosts (gnu.org, tldp.org, kubernetes.io, regex101.com, …). Add it to the lychee exclude list. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ative-component # Conflicts: # lychee.toml
…ative-component # Conflicts: # .github/workflows/test.yml # cmd/root.go # internal/exec/describe_component.go # lychee.toml # pkg/config/const.go
Contributor
|
💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏 |
Andriy Knysh (aknysh)
approved these changes
Jul 2, 2026
Contributor
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
Warning Release Documentation RequiredThis PR is labeled
|
|
These changes were released in v1.222.0. |
Chris Harden (cmharden)
pushed a commit
to cmharden/atmos
that referenced
this pull request
Jul 2, 2026
* WIP: kubernetes native component + provision targets (pre-merge snapshot) Snapshot of in-progress Kubernetes-native-component work prior to merging origin/main (which contains the Atmos Git foundation, cloudposse#2597). Lint findings in the new code were resolved (static error sentinels, named constants, perf.Track, complexity refactors, gosec file modes, file-length split into executor_bulk.go). pkg/auth/cloud/gcp/files.go was fast-forwarded to its origin/main state to clear pre-merge lint noise. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(kubernetes): publish rendered manifests to git via provision.targets Add a reusable target-provisioner registry (pkg/provisioner/target) and a ProvisionArtifact model so a component can render once and deliver to a selectable destination by kind. Implement the git target: it consumes the merged pkg/git service to clone-reconcile a managed git.repositories.<name>, write the rendered manifests under a templated path (replacing the managed subtree), path-scoped commit with provenance trailers, and push with retry; pull_request is deferred. Wire apply/deploy through provision.targets: kind 'kubernetes' keeps the inline cluster SDK apply, any other kind routes the artifact through the registry, with a new --target flag (precedence: --target > provision.default > implicit cluster). Add typed provision.targets schema (Go + stack-config/manifest JSON schemas), render the provision section so target path/commit templates materialize, plus an example, docs, a changelog blog post, and a roadmap milestone. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * [autocommit] formatting fixes * feat(kubernetes): add validate subcommand and harden git target delivery Incremental work on the native Kubernetes component feature: add an `atmos kubernetes validate` subcommand (with docs), guard the git target's writeArtifact against root/empty paths so a managed-path clear can never wipe the repository (new ErrGitTargetPathInvalid/ErrGitArtifactWrite sentinels), route operation flags through the standard parser, and refresh component docs, examples, and CLI golden snapshots accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * [autocommit] formatting fixes * fix(kubernetes): address CodeRabbit review feedback on PR cloudposse#2607 - validate: bound server-side dry-run with a 5m context timeout so a hung Kubernetes API call cannot block indefinitely - git target: harden writeArtifact root-path guard with filepath.Clean so dot-equivalent paths ("./", "a/..") cannot reach os.RemoveAll and wipe the worktree; extend regression test coverage - docs: add required description frontmatter and Screengrab block to the kubernetes validate command page Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(kubernetes): classify new section constants and fix Windows path test Acceptance Tests failed on all platforms because the kubernetes-native component PR added five new *SectionName constants without wiring them into the schema-coverage ratchet, and a path test assumed Unix-absolute paths. - datafetcher: classify the new section constants in schema_section_coverage_test.go — `kubernetes` as a top-level manifest section (alongside terraform/helmfile/packer/ansible) and the Kubernetes component sub-fields `provider`/`paths`/`manifests`/`render` as non-manifest sections (matching the packer `template` / ansible `playbook`/`inventory` precedent) - schema: model `kubernetes` in the canonical website manifest schema (top-level section, components.kubernetes, and the kubernetes_* defs), mirroring the already-updated embedded schema so TestSchemaCoversAllSections stays green instead of tracking a knownSchemaGap - kubernetes: fix TestManifestPathHelpers on Windows — "/tmp/absolute.yaml" is not absolute without a drive letter, so use t.TempDir() which is absolute on every OS Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test(kubernetes): add envtest e2e tier plus expanded unit coverage Add an end-to-end test tier for the Kubernetes native component that runs against a real kube-apiserver+etcd control plane (controller-runtime envtest). The control-plane binaries are provisioned on demand by the tests via the Atmos toolchain using an inline registry.ToolRegistry — no Makefile target, no setup-envtest, no atmos.yaml. Gated behind the `envtest` build tag and limited to Linux/macOS (there is no official kube-apiserver build for Windows). A new [envtest] CI job runs the tier on ubuntu and macos. The tier covers the client.go behavior the in-memory fake dynamic client cannot: server-side-apply field ownership, dry-run diff semantics, real discovery/RESTMapper resolution, and a CRD round-trip. Also bundles expanded unit-test coverage across the kubernetes component, describe-affected, stack processor, component graph, and git provisioner. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(ci): disable CGO for kubernetes control-plane tests and clarify job name The envtest job invoked `go test` directly, bypassing the Makefile's global CGO_ENABLED=0. With CGO on, a transitive dependency of the Atmos toolchain (bearsh/hid → libudev, via the auth/webauthn chain) tried to compile and failed on runners that lack libudev, breaking the build. Set CGO_ENABLED=0 to match Atmos's build policy; those CGO paths are unused by the tests. Also rename the job to "[Kubernetes] control plane" — leading with the subsystem and what is exercised, rather than the cryptic "[envtest]" label. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * chore(ci): rename Kubernetes job to "[kubernetes] e2e tests" Match the lowercase bracket-label convention of the other jobs ([k3s], [mock-*]) and describe the job as the Kubernetes end-to-end test tier. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Add Kubernetes CI job summaries * feat: add native Helm component support * fix kubernetes ci hook summaries * fix coderabbit review findings * fix kubernetes docs usage id * Harden spacelift admin stack ignore-missing-template-values test Assert the appended affected entry (component/stack/type) so the test is a meaningful regression guard instead of only checking no-error/non-nil. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Add unified diffs to Kubernetes plan/diff (terminal + CI summary) kubernetes plan/diff now emit a per-object unified diff in the terminal and a collapsible "Kubernetes Diff" block in the CI job summary (GitHub ```diff syntax). The diff was already computed in client.Diff() (live vs dry-run after normalizeForDiff) and discarded; this retains it via objectResult.Diff -> KubernetesObjectCIResult.Diff -> the summary template. Secret objects are omitted from the diff so their data never reaches the unmasked job summary. Mirrors the Terraform convention of a secondary <details> block, and reuses Terraform's tail-preserving truncation, extracted into the shared pkg/ci/internal/plugin.TruncateDetail helper. Includes unit + envtest coverage and updated user-facing docs (CI templates/ summary variables, job summaries, kubernetes command/usage pages, launch blog). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * [autocommit] formatting fixes * docs: fix fragile inline diff-fence formatting in CI templates page Address CodeRabbit review on PR cloudposse#2607: an inline ` ```diff ` with single-backtick delimiters renders/copies poorly. Reword to "diff block using GitHub's `diff` fenced code syntax". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ci(link-check): exclude flaky no-color.org from lychee The Check Markdown Links job failed (exit 2) on two timeouts for https://no-color.org/ (referenced from docs/prd/help-system-architecture.md and docs/prd/io-handling-strategy.md) — even with max_retries=3 and a 60s timeout. The link is valid (the NO_COLOR standard site); it just intermittently times out from CI, like the other excluded hosts (gnu.org, tldp.org, kubernetes.io, regex101.com, …). Add it to the lychee exclude list. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(kubernetes): mark atmos kubernetes command experimental Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(ci): pin kubernetes-e2e setup-go SHA and refresh --help snapshots The post-merge CI surfaced two failures introduced by the origin/main merge and the experimental-flag change: - verify (SHA-pin): the kubernetes-e2e job's "Set up Go" step still pinned the pre-merge actions/setup-go@4a36011 (# v6) while the merge bumped every other occurrence to @924ae3a; align it so SHA-pin verification passes. - Acceptance Tests (linux/macos/windows): marking `atmos kubernetes` experimental changed `atmos --help` to print `kubernetes [command] [EXPERIMENTAL]`, so the three top-level help golden snapshots were stale. Regenerated via -regenerate-snapshots (only the kubernetes line changed). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat: mark native Helm command as experimental Flip the helm CommandProvider's IsExperimental() to true so the command (and its subcommands) render the [EXPERIMENTAL] badge and honor settings.experimental / ATMOS_EXPERIMENTAL gating. Also surface the experimental status in the command docs and blog post, and regenerate the top-level help snapshots that now show the badge. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(examples): migrate Kubernetes examples to the native emulator Replace the hand-rolled k3s scaffolding (docker-compose.yml, the KUBECONFIG mixin, and the `atmos k3s` custom commands) in the kubernetes, kustomize, and demo-helmfile examples with the native emulator (components.emulator.kubernetes, driver: k3s, ephemeral). - kubernetes / kustomize: bind a `kubernetes/emulator` identity that harvests the emulator's kubeconfig and injects KUBECONFIG. - demo-helmfile: consume the emulator via the `!emulator kubernetes kubeconfig` YAML function plus toolchain-installed helmfile/helm/kubectl/kustomize. Fixes uncovered while wiring these end-to-end: - The native Kubernetes component now applies the selected identity's prepared environment (KUBECONFIG) to the in-process client, so kubernetes/emulator (and aws/eks) identities actually reach the cluster. - The k3s kubeconfig harvest polls for readiness (k3s writes k3s.yaml shortly after the API port opens) instead of racing a one-shot read. - `atmos helmfile apply` resolves its binary through the toolchain (matching the `version` subcommand), so a toolchain-installed helmfile is found. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(emulator): Gitea git-server emulator + local GitOps round trip Add a `gitea` emulator driver (new `git` target) that serves Git over HTTP, so the git provision target's render -> commit -> push path is testable end to end with no external Git host. A manager bootstrap creates a throwaway admin user and an auto-initialized `deployments` repo on `up` (mirroring the Vault bootstrap), and emulators in a stack now join a shared per-stack network so a GitOps controller in the k3s emulator can reach Gitea by name. examples/local-gitops/ is the centerpiece: it stands up the Gitea + k3s emulators, installs Flux, and reconciles what Atmos pushes to Gitea back into the cluster. Two gated E2E tests drive that example (push-only and the full Flux round trip); both pass against real Podman. Also fixes a pre-existing Podman gap: the `podman ps` List parser dropped port bindings, leaving emulator endpoints empty under Podman; add parsePodmanPorts. Bundles in-flight host-runtime container support (container.runtime.host) and related container/runner/schema/docs changes present on this branch. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(ci): align demo-helmfile jobs with the native k3s emulator migration demo-helmfile was migrated from a docker-compose k3s cluster to the native Kubernetes emulator (`atmos emulator up kubernetes`, kubeconfig harvested via the `!emulator` YAML function), but the CI jobs were not updated, so both failed: - [k3s] demo-helmfile ran `docker compose up -d --wait` against an example that no longer ships a compose file ("no configuration file provided"). `atmos test` now starts k3s itself, so drop the obsolete docker-compose + wait-for-k3s steps and the stale job-level KUBECONFIG (the component sets it via `!emulator`). - [validate] demo-helmfile validated stacks with yaml-ls-check, which can't resolve the new `!emulator` tag. Exclude demo-helmfile from that matrix (as every other function-using example already is); its stacks are still validated by `atmos validate stacks` inside the [k3s] job. Validated locally on Podman: `atmos test` brings up k3s, applies the nginx helmfile release, and tears the emulator down (exit 0). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(emulator): CI-proof the local-gitops commit identity and kubeconfig retry Two CI failures on the local-gitops / native-emulator work: - [floci] go e2e: TestLocalGitOpsPushE2E failed with `git commit (exit 128)` — the CI runner has no global git identity, and the deployments repo did not pin one, so the provisioner's commit hit "Please tell me who you are". Pin `commit.author` on the example's deployments repo (the schema documents this as required in CI) and make the E2E run with GIT_CONFIG_GLOBAL/SYSTEM=os.DevNull so it reproduces the no-ambient-identity runner and self-validates the fix. - [Acceptance/windows]: TestManager_Resolve_KubernetesKubeconfigError flaked — with kubeconfigReadyTimeout=0 the harvest retry used `time.Now().After(deadline)` (strict >). On Windows's coarse monotonic clock the first post-attempt read can equal the deadline, so it polled again (an extra List call) and tripped the mock's Times(2). Use reached-or-passed semantics (`!time.Now().Before(deadline)`) so a zero timeout makes exactly one attempt on every platform. Validated on Podman: push E2E passes with no ambient git identity; emulator unit tests (incl. the kubeconfig test) pass. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * refactor(examples): make local-gitops a symmetric `gitops up`/`down` command Replace the asymmetric `atmos gitops` / `atmos teardown` pair with a single `gitops` command group exposing `up` and `down` subcommands (the nested custom-command pattern), so standing the loop up and tearing it down read symmetrically. Update the README accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(helm): real unified diff for native Helm components Replace the dry-run-manifest dump in `atmos helm diff`/`plan` with a true unified diff computed by the helm-diff library (used as a Go library, not the CLI plugin — v3.15.10 pins the same helm.sh/helm/v4 v4.2.1 Atmos uses). Secret values are redacted. The chart is rendered client-side, so two of the three baseline modes are fully offline: - deployed release (default; reads the release via action.NewGet — cluster only for the baseline) - --from-manifest=<path> (local baseline file; offline) - --against=target[:<name>] (current manifests in a git deployment-repo provision target; offline — the GitOps producer-side diff) Adds an optional Fetcher capability to the provision-target registry and implements it on the git target (read-only clone+read). Adds a .Diff CI job summary (collapsible block, Secrets omitted) at parity with the kubernetes component, plus the --against/--from-manifest/--context flags. Docs, blog, and the examples/helm README are updated. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * [autocommit] formatting fixes * fix(helm): absolute HELM_PLUGINS + classify Helm manifest sections Fixes three CI failures introduced by the native-Helm / helmfile-plugins work: - demo-helmfile k3s E2E (`Error: unknown command "diff" for "helm"`): the managed HELM_PLUGINS directory was a path relative to the Atmos base dir (e.g. `.tools/helm-plugins`), so helm could not find installed plugins when helmfile ran helm from a component working directory. Resolve it to an absolute path, mirroring how toolchain binary PATH entries are absolutized. - TestEverySectionConstantIsClassified: classify the native-Helm section constants. Top-level `helm` (peer of `helmfile`/`kubernetes`) is a manifest section; its schema modeling is tracked as a known gap alongside the full native-Helm manifest schema. `chart`/`values`/`values_files`/`repositories`/ `plugins` are component sub-fields (like the kubernetes sub-fields). - TestCLICommands: regenerate the helmfile / helmfile-apply help snapshots for the new `--ci` flag. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * docs(helmfile): note helm-diff plugin prerequisite for diff/apply/deploy `atmos helmfile diff`, `apply`, and `deploy` shell out to `helm diff`, so they require the helm-diff plugin. Document the two ways to satisfy it: declare it on the component (`plugins: [diff@...]`) for Atmos-managed install, or install it yourself with `helm plugin install` when not using the Atmos toolchain. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test: improve native helm coverage * test: increase helm coverage * [autocommit] formatting fixes * test: make helmfile tests windows compatible * refactor(examples): provision local-gitops Flux via component `source:` Replace the `atmos vendor pull` step in the local-gitops demo with just-in-time component source provisioning. The flux component now declares a `source:` pointing at the pinned Flux install release asset, so Atmos fetches it through the shared provisioner (the same go-getter machinery `atmos vendor` uses) instead of a separate vendor.yaml. - flux.yaml: add `source:` (uri + ttl), render via `paths: ["."]` - atmos.yaml: drop the `atmos vendor pull` step from `gitops up` - delete vendor.yaml and the committed files/.gitignore; gitignore the now-ephemeral components/kubernetes/flux/ directory - README: remove the vendor step and the vendor.yaml reference - local_gitops_test.go: drop the vendor pull call from the round-trip E2E Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test: compare helmfile cwd by file identity * test: raise native-helm-component patch coverage to ~84% Cover the lowest-coverage files flagged by Codecov on the native-Helm-component feature branch, lifting patch coverage from 69.58% to ~84% (above the 80% gate): - pkg/component/helm: in-memory Helm storage driver exercises the cluster client lifecycle (install/upgrade/get/delete) without a cluster; cover external-target delivery, hook orchestration, diff baselines, and bulk paths - pkg/ci/plugins/helmfile: mirror the helm CI plugin onAfterOperation tests - pkg/provisioner/target{,/git}: Fetch dispatcher + git Fetch round-trip - pkg/manifest: list expansion, decode error, OutputDir/stdout write paths - pkg/helm/plugin: EnsureForComponent, ExtractSpecs coercion - cmd/helm, cmd/helmfile: resolveHelmBinary and CI-mode helper functions - internal/exec: add a renderAndDeliver seam to unit-test deliverHelmfileToTarget without the helmfile binary Tests only; the lone production change is a one-line test seam. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test: make TestResolveHelmBinary environment-independent resolveHelmBinary delegates to ToolchainEnvironment.Resolve, which returns the bare name "helm" when nothing is installed but a toolchain/PATH-resolved absolute path (e.g. .tools/bin/helm/.../helm[.exe]) when helm IS installed — which it is on the CI runners. Assert the resolved binary's base name instead of an exact string so the test passes on Linux, macOS, and Windows CI. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Add declarative Helm repository support * Fix acceptance CI failures * Use portable GitOps cleanup command * Fix Git emulator URL test expectation * [autocommit] formatting fixes * Update vendoring globs acceptance expectation * Add K3s deploy smoke test for Helm example * [autocommit] formatting fixes * Add Helm repository coverage to Helm example * [autocommit] formatting fixes * Silence experimental banner in Helm example test * Use shared terminal settings for markdown errors * Fix CI failures for Helm component tests * Fix macOS CI runner selection * Fix k3s example CI failures * Wait for k3s node readiness * Fix acceptance test expectations * Fix stack config helm repository schema ref * Allow current ORAS advisory until fixed release --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: atmos-pro[bot] <173522224+atmos-pro[bot]@users.noreply.github.com> Co-authored-by: aknysh <[email protected]> Co-authored-by: Andriy Knysh <[email protected]>
This was referenced Jul 31, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what
Adds the native Helm component type to Atmos (stacked on the native Kubernetes work), so
components.helm.<name>is a first-class component with the same stack semantics as Terraform/Kubernetes — rendered, diffed, applied, and deleted through the Helm Go SDK (nohelm/helmfilebinary required).This branch contributes, on top of
osterman/kubernetes-native-component:atmos helmcommands —template,diff,plan,apply,deploy,delete. Charts can be local, repository, OCI, or vendored from asource:(parity with terraform/kubernetes JIT provisioning).values:is the chart's values; secrets flow via!secretand are masked.atmos helmrenders the[EXPERIMENTAL]badge and honorssettings.experimental/ATMOS_EXPERIMENTAL.diff—atmos helm diff/plannow produces a true unified diff via the helm-diff library (used as a Go library, not the CLI plugin;v3.15.10pins the samehelm.sh/helm/v4 v4.2.1Atmos uses). Secret values are redacted. Three baselines:action.NewGet, cluster only for the baseline)--from-manifest=<path>— local baseline file (offline)--against=target[:<name>]— current manifests in a git deployment-repo provision target (offline; the GitOps producer-side diff)apply/deploycan publish rendered manifests to a git deployment repository (provisiontargets). A new optionalFetchercapability on the target registry letsdiffread that target's current state..Diffjob summary at parity with the native Kubernetes component (collapsible block, Secrets omitted).why
Helm has no native cross-release dependency ordering, no first-class secrets, and no in-process rendering — the ecosystem stitches together
helm,helmfile,helm-secrets, andhelm-diff. Atmos provides these directly through the stack model and the Helm Go SDK, including a real diff with no plugin to install, plus an offline GitOps-repo diff for producer-side workflows.references
atmos helm,helm diff, Helm componentswebsite/blog/2026-06-15-native-helm-components.mdxexamples/helmnotes
executor.go/provision.go, e.g.os.Getenv→viper, funlen, arg-limit) is tracked for a follow-up cleanup; the diff work itself is lint-clean against the base.🤖 Generated with Claude Code