Skip to content

feat: native Kubernetes components with GitOps deployment-repo delivery - #2607

Merged
Andriy Knysh (aknysh) merged 41 commits into
mainfrom
osterman/kubernetes-native-component
Jul 1, 2026
Merged

Andriy Knysh (aknysh) merged 41 commits into
mainfrom
osterman/kubernetes-native-component

Conversation

@osterman

@osterman Erik Osterman (Cloud Posse) (osterman) commented Jun 14, 2026 •

Copy link
Copy Markdown
Member

what

  • Native kubernetes component type. Define Kubernetes objects in stacks and run atmos kubernetes render|diff|plan|apply|deploy|delete <component> -s <stack> through the Kubernetes Go SDKs (server-side apply) — no kubectl or kustomize binary required.
  • Inputs can be inline manifests, files/directories (paths), and Kustomize overlays; full stack semantics (vars/env/auth/metadata/inheritance/overrides), --all/--affected DAG ordering, Atmos Auth (e.g. EKS) integration, and dotted lifecycle hooks (before/after.kubernetes.*).
  • GitOps delivery via provision.targets. apply/deploy deliver to a target selected by kind: kubernetes applies to the cluster (default), git renders the manifests and commits them to a managed Git deployment repository (Argo CD/Flux source-of-truth) instead. Selected with --target (precedence: --target → provision.default → implicit cluster), so existing components are unaffected.
  • New reusable, component-agnostic target-provisioner registry (pkg/provisioner/target, registry pattern) + a ProvisionArtifact model. The git target composes the pkg/git service: clone-reconcile a git.repositories.<name>, replace the managed templated path with the rendered files, path-scoped commit with provenance trailers, and push-with-retry. Credentials come from Atmos Auth (GitHub STS); pull_request publishing is deferred.
  • Schema, LSP, docs, examples, changelog. Typed kubernetes component and provision.targets in Go schema and both JSON schemas; LSP; command/config/stack docs; examples/kubernetes and examples/kustomize; a changelog blog post and a roadmap milestone.

why

  • Kubernetes should be orchestrated by the same stack-based engine as Terraform/Helmfile/Ansible — one set of inheritance, auth, and affected-detection — rather than shelling out to kubectl/kustomize from glue scripts.
  • GitOps pipelines have always needed ad hoc glue to render manifests into a deployment repo, commit, survive push races, and wire credentials. Atmos already owns rendering, lifecycle events, and authentication, so provision.targets adds the delivery step with centralized safety rules — the same component config can apply to a cluster in dev and publish to a GitOps repo in prod with one flag.

references

…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]>
@atmos-pro

atmos-pro Bot commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@osterman Erik Osterman (Cloud Posse) (osterman) added the minor New features that do not break anything label Jun 14, 2026
@github-actions github-actions Bot added the size/xl Extra large size PR label Jun 14, 2026
@github-actions

github-actions Bot commented Jun 14, 2026 •

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 12 package(s) with unknown licenses.
See the Details below.

License Issues

go.mod

PackageVersionLicenseIssue Type
github.com/blang/semver/v44.0.0NullUnknown License
github.com/emicklei/go-restful/v33.13.0NullUnknown License
github.com/evanphx/json-patch/v55.9.11NullUnknown License
github.com/go-openapi/jsonpointer0.21.0NullUnknown License
github.com/go-openapi/jsonreference0.20.2NullUnknown License
github.com/go-openapi/swag0.25.4NullUnknown License
github.com/google/gnostic-models0.7.0NullUnknown License
github.com/xlab/treeprint1.2.0NullUnknown License
k8s.io/api0.36.1NullUnknown License
k8s.io/apiextensions-apiserver0.36.0NullUnknown License
sigs.k8s.io/controller-runtime0.24.1NullUnknown License
sigs.k8s.io/kustomize/kyaml0.21.1NullUnknown License
Allowed Licenses: MIT, MIT-0, Apache-2.0, BSD-2-Clause, BSD-2-Clause-Views, BSD-3-Clause, ISC, MPL-2.0, 0BSD, Unlicense, CC0-1.0, CC-BY-3.0, CC-BY-4.0, CC-BY-SA-3.0, Python-2.0, OFL-1.1, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-unicode, LicenseRef-scancode-google-patent-license-golang
Excluded from license check: pkg:golang/modernc.org/libc

Scanned Files

  • go.mod

@coderabbitai

coderabbitai Bot commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e913caf6-4377-4a78-982c-42fd5a167c6b

📥 Commits

Reviewing files that changed from the base of the PR and between a9366fe and 093a8b5.

📒 Files selected for processing (1)
  • examples/local-gitops/atmos.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • examples/local-gitops/atmos.yaml

📝 Walkthrough

Walkthrough

This PR adds Kubernetes as a first-class Atmos component type with CLI, stack processing, runtime execution, GitOps delivery, CI summaries, container/emulator support, schemas, docs, and tests.

Changes

Native Kubernetes component support

Layer / File(s) Summary
Contracts, config, CLI entrypoints, examples and docs
cmd/kubernetes/*, cmd/markdown/atmos_kubernetes_*, pkg/component/kubernetes/config.go, pkg/component/kubernetes/types.go, pkg/config/*, pkg/lsp/server/*, pkg/provisioner/target/{artifact,resolve,target}*.go, pkg/schema/schema.go, errors/errors.go, pkg/datafetcher/schema/**, examples/**, website/docs/**, tests/snapshots/*, go.mod, NOTICE
Defines Kubernetes config defaults/types, sentinel errors, the atmos kubernetes Cobra command and subcommands, provision-target registry contracts, JSON schemas, CLI/LSP support, dependency updates, and the example stacks, READMEs, docs, snapshots, PRDs, and website pages that exercise the new component type.
Runtime execution and stack processing
pkg/component/kubernetes/{kubernetes,manifest,render,templates,client,diff,validate,executor,executor_bulk}.go and tests, pkg/component/graph.go, internal/exec/stack_processor_*.go, internal/exec/describe_affected_*.go, pkg/hooks/{hooks,event}.go
Implements manifest loading/rendering/diff/validate, the dependency-graph executor, Kubernetes section merging/inheritance in stack processing, affected-detection for Kubernetes components, and hook event wiring, with accompanying unit/envtest coverage.
GitOps delivery, CI plugin, container/emulator infra, workflows and docs
pkg/provisioner/target/git/*, pkg/ci/plugins/kubernetes/*, pkg/ci/internal/plugin/truncate.go, pkg/container/*, pkg/emulator/*, pkg/runner/step/container_run.go, .github/workflows/test.yml, docs/prd/*
Adds the git provision target for committing rendered manifests to a deployment repo, the Kubernetes CI job-summary plugin/templates, host-runtime container access (container.runtime.host), emulator shared-network and kubeconfig-readiness changes, and CI workflow/PRD updates.

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~150 minutes

Possibly related PRs

  • cloudposse/atmos#721: Both PRs modify .github/workflows/test.yml’s release job wiring—main PR updates the job’s needs to include the new kubernetes-e2e job, while the retrieved PR reintroduces/adjusts release to run only when dependent jobs pass.

  • cloudposse/atmos#1267: Both PRs touch the atmos describe affected affected-detection implementation under internal/exec—the main PR extends Kubernetes-specific affected section reasoning, while the retrieved PR changes the command/output schema and plumbing (adds affected_all) for affected results—so they’re code-level related.

  • cloudposse/atmos#1639: Main PR’s Kubernetes affected-detection updates extend the same internal/exec/describe_affected_changed_files_index.go changed-files index logic (base-path/relevant-files handling) that the retrieved performance PR introduced/optimized, so the changes are related.

  • cloudposse/atmos#1648: Main PR adds the Kubernetes component provider/executor implementation that implements the ComponentProvider contract (GetType/GetGroup/GetBasePath/ListComponents/ValidateComponent/Execute/GetAvailableCommands) and self-registers—directly depending on the component registry pattern introduced in retrieved PR #1648.

  • cloudposse/atmos#1763: The main PR’s addition of Kubernetes-specific sentinel errors in errors/errors.go is directly tied to the retrieved PR’s error-handling infrastructure work based on errors/errors.go static sentinel errors.

  • cloudposse/atmos#1876: Both PRs are tied to Terraform workdir provisioning: the main PR’s internal/exec/terraform_shell.go workdir-path override uses the same workdir metadata (WorkdirPathKey) introduced in the workdir provisioner PR (#1876).

  • cloudposse/atmos#2003: The main PR’s Kubernetes affected-detection updates extend the same internal/exec/describe_affected_* component-file indexing pipeline (notably describe_affected_changed_files_index.go) that PR #2003 fixed for git-repo-root path resolution and component-folder resolution, so the changes are directly connected at the affected-detection code level.

  • cloudposse/atmos#2042: Both PRs extend the shared stack/component processing and CLI command wiring patterns in the same core stack-processing code paths (e.g., internal/exec/stack_processor_process_stacks.go) to add support for a new native component type (Kubernetes vs Ansible).

  • cloudposse/atmos#2309: Both PRs modify the shared hook-event plumbing (especially pkg/hooks/event.go’s HookEvent normalization/phase handling), so the main PR’s Kubernetes hook behavior is directly tied to the same hook-event logic changed in the retrieved PR.

  • cloudposse/atmos#2573: Main PR’s Kubernetes affected-detection (addKubernetesSectionAffected/processKubernetesComponentsIndexed) plugs into the same “describe affected” component-section comparison/refactor (resolveComponentSectionChecks, evaluated stack sections) that retrieved PR #2573 introduced, so the changes are tightly related at the section-evaluation logic level.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 28.75% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: native Kubernetes components plus GitOps delivery-repo support.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch osterman/kubernetes-native-component

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Note

Due to the large number of review comments, Critical severity comments were prioritized as inline comments.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
NOTICE (1)

308-1936: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Regenerate the NOTICE snapshot.

CI already says this file is out of date, so the committed license list still doesn't match the generated output. Please rerun ./scripts/generate-notice.sh and commit the exact result.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@NOTICE` around lines 308 - 1936, The NOTICE file contains an outdated list of
dependencies and their licenses that no longer matches the current project
state. To fix this, run the license generation script located at
./scripts/generate-notice.sh, which will scan the current dependencies and
regenerate the complete and accurate NOTICE file. After running the script,
commit the updated NOTICE file to reflect the current dependency tree.

Source: Pipeline failures

pkg/hooks/event.go (1)

50-54: 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

Update the IsPostExecution comment to cover Kubernetes events too.

The implementation now applies to all after.* hooks, but the comment still describes only Terraform execution semantics.
As per coding guidelines, “Update comments to match code when refactoring.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/hooks/event.go` around lines 50 - 54, Update the comment for the
IsPostExecution function to reflect that it now applies to all after.* hooks,
not just Terraform execution. The current comment describes only
Terraform-specific semantics (init behavior), but the implementation now covers
Kubernetes events as well. Revise the comment to provide a more general
description of what IsPostExecution does while maintaining clarity about how
it's used by hooks to determine execution order.

Source: Coding guidelines

🟠 Major comments (33)
website/docs/cli/configuration/components/terraform.mdx-221-221 (1)

221-221: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

The OpenTofu example fence is collapsed into a single line.

This line is very likely to render incorrectly and is hard to copy correctly. Keep it as a normal multiline fenced YAML block.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/cli/configuration/components/terraform.mdx` at line 221, The
OpenTofu YAML configuration example in the code fence is collapsed into a single
line, which will render incorrectly and is difficult to copy. Expand the
collapsed code block at line 221 back into a properly formatted multi-line YAML
code fence. The YAML structure should show each configuration property on
separate lines with proper indentation: components as the top-level key,
terraform as a nested key under components, and then command, init, and
pass_vars as properly indented configuration properties. Ensure the markdown
fence syntax is preserved with the yaml language identifier.
website/docs/stacks/components/ansible.mdx-102-105 (1)

102-105: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Playbook YAML example is flattened and no longer readable as YAML.

Please restore the multiline fenced YAML block so users can copy it directly.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/ansible.mdx` around lines 102 - 105, The YAML
playbook example in the fenced code block is flattened into a single line or
improper formatting, making it unreadable and difficult for users to copy.
Restore the multiline YAML structure with proper indentation and line breaks so
that each key (name, hosts, connection, gather_facts, tasks) and their nested
values appear on separate lines with correct YAML indentation. Ensure the entire
playbook block maintains standard YAML formatting conventions so users can
easily read and copy it directly from the documentation.
website/docs/stacks/components/ansible.mdx-155-174 (1)

155-174: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Complete stack example lost YAML indentation hierarchy.

vars, ansible, and components.ansible.webserver are no longer nested correctly, which makes the example invalid.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/ansible.mdx` around lines 155 - 174, The YAML
indentation in the stack example is broken, causing an invalid configuration.
Restore the proper nesting hierarchy by ensuring that vars and env are indented
as children under the ansible key at the top level, components is a top-level
key with ansible indented beneath it, webserver is indented under
components.ansible, and both vars and settings are indented as children of
webserver. Additionally, ensure that the ansible key under settings (containing
playbook and inventory) is properly indented as a child of settings.
website/docs/stacks/components/helmfile.mdx-103-116 (1)

103-116: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

releases sample formatting breaks Helmfile YAML structure.

The list/item nesting under releases is flattened, so the snippet is no longer a valid Helmfile example.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/helmfile.mdx` around lines 103 - 116, The YAML
indentation in the nginx-ingress release example is incorrectly flattened,
breaking the valid Helmfile structure. Fix the indentation of the values section
so that controller, service, and metrics are properly nested as configuration
blocks under the values key. Specifically, ensure replicaCount is nested under
controller, type is nested under service (which is nested under controller), and
enabled is nested under metrics (which is also nested under controller). The
dash in the values list should be followed by proper indentation hierarchy for
all nested configuration keys.
website/docs/stacks/components/helmfile.mdx-152-172 (1)

152-172: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Complete example YAML nesting is broken.

Top-level keys and nested component fields are flattened; this makes the stack sample invalid for copy/paste.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/helmfile.mdx` around lines 152 - 172, The YAML
example in the helmfile documentation has improper indentation that flattens the
hierarchical structure, making it invalid for copy/paste usage. Review the
entire YAML block starting with region, stage, and eks_cluster_name through the
cert-manager component configuration to ensure proper nesting: verify that
helmfile section contains properly indented vars and env subsections, that
components contains helmfile which contains cert-manager as a nested key, and
that metadata and vars under cert-manager are correctly indented as child
elements. Fix all indentation to use consistent spacing (typically 2 spaces per
nesting level) so the YAML structure reflects the intended configuration
hierarchy and is valid when copy/pasted into actual configuration files.
website/docs/stacks/components/helmfile.mdx-294-299 (1)

294-299: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Template delimiters were changed to invalid syntax ({ { ... } }).

Those expressions should remain {{ ... }}; with inserted spaces, users will copy a broken template.

Suggested fix
-          tag: { { .Values.image_tag | quote } }
-        replicaCount: { { .Values.replicas } }
+          tag: {{ .Values.image_tag | quote }}
+        replicaCount: {{ .Values.replicas }}
 ...
-            cpu: { { .Values.resources.requests.cpu | quote } }
-            memory: { { .Values.resources.requests.memory | quote } }
+            cpu: {{ .Values.resources.requests.cpu | quote }}
+            memory: {{ .Values.resources.requests.memory | quote }}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/helmfile.mdx` around lines 294 - 299, The
template delimiters in the Helm configuration example have been incorrectly
changed to `{ { ... } }` with spaces, which is invalid syntax. Fix all template
delimiters in this section (for tag, replicaCount, cpu, and memory values) by
removing the spaces so they read `{{ ... }}` instead, restoring the correct Helm
template syntax that users can properly copy and use.
website/docs/cli/configuration/components/index.mdx-59-73 (1)

59-73: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

YAML example indentation is broken in the components snippet.

The helmfile, kubernetes, packer, and ansible blocks are no longer nested under components, so the sample is invalid YAML for copy/paste.

Suggested fix
 components:
   terraform:
     base_path: components/terraform
     command: terraform
     # ... terraform-specific settings

-helmfile:
-base_path: components/helmfile
-command: helmfile # ... helmfile-specific settings
+  helmfile:
+    base_path: components/helmfile
+    command: helmfile # ... helmfile-specific settings

-kubernetes:
-base_path: components/kubernetes
-provider: kubectl # ... kubernetes-specific settings
+  kubernetes:
+    base_path: components/kubernetes
+    provider: kubectl # ... kubernetes-specific settings

-packer:
-base_path: components/packer
-command: packer # ... packer-specific settings
+  packer:
+    base_path: components/packer
+    command: packer # ... packer-specific settings

-ansible:
-base_path: components/ansible
-command: ansible # ... ansible-specific settings
+  ansible:
+    base_path: components/ansible
+    command: ansible # ... ansible-specific settings
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/cli/configuration/components/index.mdx` around lines 59 - 73,
The YAML example showing the component configuration blocks (helmfile,
kubernetes, packer, and ansible) is missing proper indentation and is not nested
under a components parent key. Fix the indentation in the code snippet at lines
59-73 so that helmfile, kubernetes, packer, and ansible are all indented as
children of a components block. This will make the YAML valid and copy-paste
ready for users following the documentation.
website/docs/stacks/components/packer.mdx-213-234 (1)

213-234: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Complete Example YAML is structurally broken.

From Line 213 through Line 234, top-level and nested keys lost indentation (vars, packer, components, and ami-ubuntu-base are flattened). The sample is not valid YAML in its current form.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/packer.mdx` around lines 213 - 234, The YAML
structure in the Complete Example has lost proper indentation, making it
invalid. The keys `vars`, `packer`, `components`, and `ami-ubuntu-base` are
incorrectly flattened at the same level instead of being properly nested.
Restore the hierarchical indentation so that `vars` and `env` are nested under
the first `packer` key (at 2-space indentation), `components` is nested under
`packer` (at 2-space indentation), the second `packer` key is nested under
`components` (at 4-space indentation), `ami-ubuntu-base` is nested under the
second `packer` (at 6-space indentation), and all their child keys follow proper
2-space increments for each nesting level to create valid YAML.
website/docs/stacks/components/packer.mdx-233-233 (1)

233-233: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Invalid YAML escape in AMI filter pattern.

Line 233 uses \* inside a double-quoted YAML string. \* is not a valid YAML escape sequence, so parsers can reject this field. Use plain * inside the quoted string.

Suggested fix
-name: "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-\*"
+name: "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/packer.mdx` at line 233, The AMI filter
pattern name contains an invalid YAML escape sequence `\*` which should be a
plain `*` since asterisk does not need escaping within double-quoted YAML
strings. Update the string in the filter pattern from
`ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-\*` to
`ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*` to use valid YAML
syntax that parsers will accept without rejecting the field.
website/docs/stacks/components/metadata.mdx-309-310 (1)

309-310: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Malformed fenced block and invalid inline YAML.

Line 309 and Line 310 collapse an entire YAML example into inline text with a broken fence, so the example is not reliably renderable or copyable.

Suggested fix
-  ```yaml components: terraform: expensive-feature: metadata: enabled: true #
-  Enabled in production vars: # ... ```
+```yaml
+components:
+  terraform:
+    expensive-feature:
+      metadata:
+        enabled: true # Enabled in production
+      vars:
+        # ...
+```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/metadata.mdx` around lines 309 - 310, The YAML
example at lines 309-310 in the metadata.mdx file is malformed with a broken
fence and collapsed into inline text, making it unrenderable and not copyable.
Replace the malformed inline YAML block with a properly formatted code block by
opening with ```yaml, structuring the YAML content with correct indentation
showing the hierarchy of components, terraform, expensive-feature, metadata with
enabled: true and its comment, followed by vars with an inline comment, and then
closing with ```.
website/docs/stacks/components/metadata.mdx-282-288 (1)

282-288: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Broken YAML example due lost indentation/list structure.

Line 282 through Line 288 are no longer valid YAML (terraform, vpc, metadata, and vars lost nesting; inherits/availability_zones list syntax is malformed). This will fail if readers copy it.

Suggested fix
 components:
-terraform:
-vpc:
-metadata:
-inherits: - vpc/defaults
-vars:
-vpc_cidr: "10.0.0.0/16"
-availability_zones: - us-east-1a - us-east-1b - us-east-1c
+  terraform:
+    vpc:
+      metadata:
+        inherits:
+          - vpc/defaults
+      vars:
+        vpc_cidr: "10.0.0.0/16"
+        availability_zones:
+          - us-east-1a
+          - us-east-1b
+          - us-east-1c
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/metadata.mdx` around lines 282 - 288, The YAML
example in the metadata.mdx documentation file has broken indentation and
malformed list structures. Restore the proper hierarchical nesting by: ensuring
terraform, vpc, and metadata form a nested structure with correct indentation;
properly indent the inherits list under metadata with each item on a separate
line preceded by a dash; ensure vars is properly nested under metadata with
correct indentation; and fix the availability_zones list to use proper YAML list
syntax with each zone on a separate line with a dash and proper indentation. The
entire example needs consistent 2-space indentation throughout to be valid YAML
that readers can copy and use.
examples/kubernetes/docker-compose.yml-23-23 (1)

23-23: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Avoid world-readable kubeconfig permissions.

K3S_KUBECONFIG_MODE: 666 makes cluster credentials readable by any local user. For local examples this is still an avoidable secret exposure; use 600 (or 640 if group sharing is intentional).

Suggested patch
-      K3S_KUBECONFIG_MODE: 666
+      K3S_KUBECONFIG_MODE: 600
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/kubernetes/docker-compose.yml` at line 23, The K3S_KUBECONFIG_MODE
environment variable in the docker-compose.yml file is currently set to 666,
which makes cluster credentials world-readable by any local user. Change the
K3S_KUBECONFIG_MODE value from 666 to 600 to restrict read permissions to the
owner only, preventing unnecessary exposure of sensitive kubeconfig credentials
in the local example.
examples/kustomize/components/kubernetes/demo/base/deployment.yaml-16-21 (1)

16-21: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Harden pod/container security context in the example manifest.

Line 16-21 runs without explicit non-root/privilege-escalation controls, which weakens baseline security and triggers the reported checks.

Suggested patch
 spec:
   replicas: 1
   selector:
     matchLabels:
       app.kubernetes.io/name: demo
   template:
     metadata:
       labels:
         app.kubernetes.io/name: demo
     spec:
+      securityContext:
+        runAsNonRoot: true
       containers:
         - name: nginx
           image: nginx:1.27-alpine
+          securityContext:
+            allowPrivilegeEscalation: false
           ports:
             - name: http
               containerPort: 80
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/kustomize/components/kubernetes/demo/base/deployment.yaml` around
lines 16 - 21, The nginx container specification lacks explicit security context
controls, allowing it to potentially run with elevated privileges. Add a
securityContext block to the nginx container that enforces running as a non-root
user (using runAsNonRoot: true) and disables privilege escalation (using
allowPrivilegeEscalation: false). This hardens the container security posture
and ensures compliance with baseline security policies.

Source: Linters/SAST tools

website/docs/cli/commands/kubernetes/kubernetes-apply.mdx-1-6 (1)

1-6: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Kubernetes command docs are missing required description frontmatter across all three pages. The same template omission is repeated and should be fixed consistently.

  • website/docs/cli/commands/kubernetes/kubernetes-apply.mdx#L1-L6: add description: to frontmatter with concise command purpose text.
  • website/docs/cli/commands/kubernetes/kubernetes-delete.mdx#L1-L6: add description: to frontmatter with concise command purpose text.
  • website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx#L1-L6: add description: to frontmatter with concise command purpose text.
    As per coding guidelines: “CLI command docs MUST include: (1) Frontmatter (title, sidebar_label, sidebar_class_name, id, description) …”.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/cli/commands/kubernetes/kubernetes-apply.mdx` around lines 1 -
6, The Kubernetes command documentation files are missing the required
`description` field in their frontmatter. Add a `description:` field with
concise command purpose text to the frontmatter block in all three affected
files: website/docs/cli/commands/kubernetes/kubernetes-apply.mdx (lines 1-6),
website/docs/cli/commands/kubernetes/kubernetes-delete.mdx (lines 1-6), and
website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx (lines 1-6). Each
description should briefly explain what the respective command does (apply,
delete, or deploy as appropriate). The description field must be included
alongside the existing title, sidebar_label, sidebar_class_name, and id
frontmatter fields to meet the CLI command documentation guidelines.

Source: Coding guidelines

website/docs/cli/commands/kubernetes/kubernetes-apply.mdx-45-63 (1)

45-63: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Required Screengrab section is missing across the Kubernetes command docs. This is one repeated docs-contract gap and should be added uniformly.

  • website/docs/cli/commands/kubernetes/kubernetes-apply.mdx#L45-L63: add a dedicated “Screengrab” section with the expected command UI/output visual.
  • website/docs/cli/commands/kubernetes/kubernetes-delete.mdx#L41-L54: add a dedicated “Screengrab” section with the expected command UI/output visual.
  • website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx#L46-L52: add a dedicated “Screengrab” section with the expected command UI/output visual.
    As per coding guidelines: “CLI command docs MUST include: … (3) Screengrab …”.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/cli/commands/kubernetes/kubernetes-apply.mdx` around lines 45 -
63, Add a dedicated "Screengrab" section to each of the three Kubernetes command
documentation files to comply with the CLI command docs contract. In
website/docs/cli/commands/kubernetes/kubernetes-apply.mdx (after line 63),
website/docs/cli/commands/kubernetes/kubernetes-delete.mdx (after line 54), and
website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx (after line 52),
insert a new "## Screengrab" section that includes a visual representation or
image of the expected command execution UI and output. Each Screengrab section
should be placed after the Example section and before the Flags section to
maintain consistent documentation structure across all three files.

Source: Coding guidelines

examples/kustomize/docker-compose.yml-23-23 (1)

23-23: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Avoid world-readable kubeconfig permissions.

K3S_KUBECONFIG_MODE: 666 makes cluster credentials readable by any local user on the host-mounted output path. Set this to 600 (or 640) to reduce accidental credential exposure.

Suggested fix
-      K3S_KUBECONFIG_MODE: 666
+      K3S_KUBECONFIG_MODE: 600
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/kustomize/docker-compose.yml` at line 23, The K3S_KUBECONFIG_MODE
environment variable is currently set to 666, which makes the kubeconfig file
world-readable and exposes cluster credentials to any local user. Change the
value of K3S_KUBECONFIG_MODE from 666 to 600 to restrict read/write access to
only the owner, thereby reducing the risk of accidental credential exposure.
internal/exec/stack_processor_merge.go-275-312 (1)

275-312: ⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

Global Kubernetes defaults are not included in provider/paths/manifests/render precedence.

This merge path only combines base + component layers for Kubernetes provider/paths/manifests/render. That drops stack-global Kubernetes defaults from final component config in this function’s precedence model.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@internal/exec/stack_processor_merge.go` around lines 275 - 312, The merge
operations for finalComponentProvider, finalComponentPaths,
finalComponentManifests, and finalComponentRender currently only include base
and component layers, excluding stack-global Kubernetes defaults from the
precedence model. Modify the mergeComponentAnySection calls and the m.Merge call
in the Kubernetes component type block to include the stack-global Kubernetes
defaults as the first layer in the merge precedence, allowing base and component
layers to override them. Identify where the global defaults are available
(likely in mergeConfig or result) and prepend them to the slice or map passed to
each merge operation.
pkg/component/kubernetes/manifest.go-232-248 (1)

232-248: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Invalid manifests/paths types are silently dropped.

asAnySlice returns nil for unsupported types, so malformed input can quietly become “no manifests loaded” instead of a validation error. Fail loudly here to prevent accidental no-op deploys.

Proposed fix.
-func asAnySlice(value any) []any {
+func asAnySlice(value any) ([]any, error) {
 	switch typed := value.(type) {
 	case nil:
-		return nil
+		return nil, nil
 	case []any:
-		return typed
+		return typed, nil
 	case []string:
 		result := make([]any, 0, len(typed))
 		for _, item := range typed {
 			result = append(result, item)
 		}
-		return result
+		return result, nil
 	case string:
-		return []any{typed}
+		return []any{typed}, nil
 	default:
-		return nil
+		return nil, fmt.Errorf("%w, got %T", errUtils.ErrManifestEntryInvalidType, value)
 	}
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/manifest.go` around lines 232 - 248, The asAnySlice
function currently returns nil for unsupported types in the default case,
causing malformed manifest/paths input to be silently dropped without validation
errors. Modify asAnySlice to fail loudly by changing its signature to return
both a slice and an error, then replace the default case to return an
appropriate error indicating the unsupported type instead of returning nil.
Update all call sites of asAnySlice to handle and propagate the error return
value, ensuring validation errors are properly surfaced rather than silently
becoming no-op deploys.
pkg/component/kubernetes/manifest.go-215-220 (1)

215-220: ⚠️ Potential issue | 🟠 Major

Add path validation to enforce component-directory boundaries.

The function accepts absolute paths (line 216) and allows relative paths with .. traversal (line 219) that can escape the component directory. For example, resolvePath(componentPath, "../../etc/passwd") normalizes outside bounds. While the test shows absolute paths are intentionally supported, consider whether all paths should be validated to enforce the component-directory boundary—either by rejecting traversal sequences or requiring all paths remain relative to componentPath.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/manifest.go` around lines 215 - 220, The resolvePath
function currently allows relative paths with ".." traversal sequences and
absolute paths that can escape the component directory boundary. Add validation
to reject paths containing ".." traversal sequences (which would allow escaping
basePath) and consider whether absolute paths should be rejected entirely since
they bypass the basePath validation intended to enforce directory boundaries.
After resolving the path using filepath.Clean and filepath.Join, validate that
the final result remains within the intended basePath directory to prevent
directory traversal attacks.

Source: Learnings

pkg/component/kubernetes/executor.go-321-328 (1)

321-328: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Use data.*/ui.* output instead of writing to os.Stdout directly.

Direct fmt.Fprintf(os.Stdout, ...) bypasses the project’s output pipeline.

As per coding guidelines, "Never use fmt.Fprintf(os.Stdout/Stderr, ...) or fmt.Println(...). Use data.* or ui.* functions instead".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/executor.go` around lines 321 - 328, The
printResults function is using fmt.Fprintf(os.Stdout, ...) directly, which
bypasses the project's output pipeline. Replace both fmt.Fprintf calls in the
printResults function (the one handling empty namespaces and the one handling
non-empty namespaces) with the appropriate data.* or ui.* functions from the
project's output pipeline, maintaining the same formatted output for each case.

Source: Coding guidelines

pkg/component/kubernetes/executor.go-273-275 (1)

273-275: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Wrap directory-creation failures with a static sentinel error.

This branch returns a dynamic error directly; it should include a static error from errors/errors.go and wrap context.

🩹 Proposed fix
 	if err := os.MkdirAll(componentPath, dirPerm); err != nil {
-		return fmt.Errorf("failed to create Kubernetes component directory: %w", err)
+		return errors.Join(
+			errUtils.ErrPathResolution,
+			fmt.Errorf("failed to create Kubernetes component directory %q: %w", componentPath, err),
+		)
 	}

As per coding guidelines, "All errors MUST be wrapped using static errors defined in errors/errors.go".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/executor.go` around lines 273 - 275, The error
handling for the os.MkdirAll call in the directory creation logic is returning a
dynamic error using fmt.Errorf instead of using a static sentinel error. Define
or identify an appropriate static error in errors/errors.go for directory
creation failures, then replace the dynamic fmt.Errorf call with the static
sentinel error wrapped around the actual error from os.MkdirAll using
errors.Join or similar wrapping mechanism to provide both the static error
context and the underlying error details.

Source: Coding guidelines

pkg/component/graph.go-52-52 (1)

52-52: 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

Align returned errors with the repository static-error contract.

This path returns raw/partially wrapped errors (ctx.Err() and provider execution error context) without a static sentinel, which weakens consistent errors.Is() handling across the codebase.
As per coding guidelines, “All errors MUST be wrapped using static errors defined in errors/errors.go.”

Also applies to: 117-118

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/graph.go` at line 52, The returns at line 52 in
pkg/component/graph.go (ctx.Err()) and lines 117-118 (provider execution error
context) are returning raw or partially wrapped errors without static error
sentinels from errors/errors.go, which breaks the codebase's consistent
errors.Is() handling contract. Wrap these context and provider errors using the
appropriate static error sentinel from errors/errors.go before returning them in
all three locations to align with the static-error contract guidelines.

Source: Coding guidelines

pkg/component/graph.go-18-18 (1)

18-18: ⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

GraphNodeID can collide for different (component, stack) pairs.

Using "%s-%s" is ambiguous when either field contains - (e.g., ("api-prod","dev") and ("api","prod-dev") both yield api-prod-dev), which can corrupt node/edge mapping.

Suggested fix.
-const graphNodeIDFormat = "%s-%s"
+const graphNodeIDFormat = "%d:%s|%d:%s"

 func GraphNodeID(componentName, stackName string) string {
 	defer perf.Track(nil, "component.GraphNodeID")()

-	return fmt.Sprintf(graphNodeIDFormat, componentName, stackName)
+	return fmt.Sprintf(graphNodeIDFormat, len(componentName), componentName, len(stackName), stackName)
 }

Also applies to: 205-209

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/graph.go` at line 18, The graphNodeIDFormat constant at line 18
uses a simple dash delimiter in the "%s-%s" format string which creates
ambiguous node IDs when component or stack names contain dashes. Replace the
dash delimiter with a character or sequence that cannot appear in component or
stack names (such as a colon, pipe, or underscore pair) to eliminate collisions.
This format string change must be applied consistently at the constant
definition (line 18) and everywhere it is used to construct node IDs (lines
205-209), ensuring all calls to format the graph node ID use the new unambiguous
delimiter.
pkg/component/graph.go-183-186 (1)

183-186: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Selection fast-path should validate set equality, not only count.

If selection.NodeIDs has the same length as graph size but different IDs, this returns the full graph and runs unintended components.

Suggested fix.
 	nodeIDs := sortedUniqueStrings(selection.NodeIDs)
-	if len(nodeIDs) == graph.Size() && !selection.IncludeDependencies && !selection.IncludeDependents {
-		return graph
-	}
+	if !selection.IncludeDependencies && !selection.IncludeDependents && len(nodeIDs) == graph.Size() {
+		allPresent := true
+		for _, id := range nodeIDs {
+			if _, ok := graph.Nodes[id]; !ok {
+				allPresent = false
+				break
+			}
+		}
+		if allPresent {
+			return graph
+		}
+	}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/graph.go` around lines 183 - 186, The selection fast-path
optimization in the condition around sortedUniqueStrings(selection.NodeIDs) is
checking only if the length of nodeIDs equals graph.Size(), but this does not
ensure the actual node IDs match the graph's complete node set. If
selection.NodeIDs contains a different set of nodes with the same count, the
full graph will be returned unintentionally. Replace the length-only check with
a validation that confirms the actual set equality between nodeIDs and the
graph's complete node IDs before returning the unfiltered graph.
pkg/lsp/server/diagnostics.go-247-258 (1)

247-258: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Accept !include strings for components.kubernetes to match schema contract.

Right now this flags any non-map value as invalid, but pkg/datafetcher/schema/stacks/stack-config/1.0.json explicitly allows a string include form for this section. That produces false diagnostics on valid manifests.

Suggested fix.
 func (h *Handler) validateKubernetesComponents(compMap map[string]interface{}) []protocol.Diagnostic {
 	var diagnostics []protocol.Diagnostic

 	kubernetes, ok := compMap["kubernetes"]
 	if !ok {
 		return diagnostics
 	}

-	if _, isMap := kubernetes.(map[string]interface{}); !isMap {
-		diagnostics = append(diagnostics, h.createDiagnostic("'components.kubernetes' should be a map"))
-	}
+	switch v := kubernetes.(type) {
+	case map[string]interface{}:
+		return diagnostics
+	case string:
+		if strings.HasPrefix(strings.TrimSpace(v), "!include") {
+			return diagnostics
+		}
+	}
+	diagnostics = append(diagnostics, h.createDiagnostic("'components.kubernetes' should be a map or !include string"))

 	return diagnostics
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/lsp/server/diagnostics.go` around lines 247 - 258, The
validateKubernetesComponents method currently only accepts map values for the
kubernetes component, but the schema also allows string values (specifically for
!include directives). Update the validation logic to accept both map and string
types for the kubernetes component. Instead of checking only if the value is a
map with the isMap type assertion, add an additional check to allow string
values. Only create a diagnostic if the kubernetes value is neither a map nor a
string.
pkg/component/kubernetes/client.go-54-55 (1)

54-55: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Use static error types instead of dynamic fmt.Errorf in Kubernetes client paths.

These new error sites return dynamic strings, which breaks the repo’s error contract and weakens reliable errors.Is() handling across callers/tests.

As per coding guidelines, all errors must be wrapped using static errors defined in errors/errors.go and dynamic errors must not be used directly.

Also applies to: 64-65, 69-70, 91-92, 100-101, 124-125, 153-154, 163-164, 172-173, 199-200

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/client.go` around lines 54 - 55, The Kubernetes
client error handling in pkg/component/kubernetes/client.go uses dynamic
fmt.Errorf calls instead of static error types, which breaks error contract
compliance and weakens errors.Is() handling. Replace all fmt.Errorf calls with
static error types defined in errors/errors.go at the following locations: lines
54-55 (the load Kubernetes client config failure), lines 64-65, 69-70, 91-92,
100-101, 124-125, 153-154, 163-164, 172-173, and 199-200. For each location,
identify the appropriate static error type from errors/errors.go that matches
the context and use it instead of fmt.Errorf, wrapping any underlying error with
the static error type to preserve error context while maintaining the
repository's error contract.

Source: Coding guidelines

pkg/component/kubernetes/client.go-123-130 (1)

123-130: ⚠️ Potential issue | 🟠 Major

Fix shadowed variable so not-found is reported correctly when delete fails.

On line 123, err := shadows the outer err, creating a block-scoped variable. After the if block, line 128 references the outer err from line 118 (which is guaranteed to be nil after the check on line 119-120). This means action will always be "deleted", even when the delete operation returns a not-found error.

Rename the shadowed variable to avoid reusing the outer scope name:

Suggested fix.
-		if err := resource.Delete(ctx, obj.GetName(), metav1.DeleteOptions{}); err != nil && !errors.IsNotFound(err) {
-			return nil, fmt.Errorf("failed to delete %s/%s: %w", obj.GetKind(), obj.GetName(), err)
+		deleteErr := resource.Delete(ctx, obj.GetName(), metav1.DeleteOptions{})
+		if deleteErr != nil && !errors.IsNotFound(deleteErr) {
+			return nil, fmt.Errorf("failed to delete %s/%s: %w", obj.GetKind(), obj.GetName(), deleteErr)
 		}
 
 		action := "deleted"
-		if err != nil && errors.IsNotFound(err) {
+		if deleteErr != nil && errors.IsNotFound(deleteErr) {
 			action = "not-found"
 		}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/client.go` around lines 123 - 130, The Delete
operation on line 123 uses `err :=` which shadows the outer err variable,
causing the subsequent check on line 128 to reference the outer err (which is
guaranteed to be nil) instead of the delete operation's error result. Rename the
variable in the Delete operation assignment from `err` to a different name such
as `deleteErr` to avoid shadowing, and then update the condition on line 128 to
check this renamed variable instead, so that the not-found error from the delete
operation is properly detected and the action is correctly set to "not-found".
pkg/provisioner/target/git/git.go-149-164 (1)

149-164: 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

Wrap filesystem failures with static Atmos errors before adding context.

These returns construct dynamic errors directly; project policy requires wrapping static errors from errors/errors.go and then adding %w context.
As per coding guidelines: “All errors MUST be wrapped using static errors defined in errors/errors.go... NEVER use dynamic errors directly.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/provisioner/target/git/git.go` around lines 149 - 164, The error handling
in the git provisioning code is returning errors directly without first wrapping
them with static errors from errors/errors.go as required by project policy. For
the os.RemoveAll call at the beginning and within the file iteration loop (in
the ValidateRepoRelativePath call, os.MkdirAll call, and os.WriteFile call),
wrap the underlying static errors from errors/errors.go first, then add
contextual information using fmt.Errorf with the %w directive. This ensures all
errors follow the coding guideline of wrapping static errors before adding
context.

Source: Coding guidelines

pkg/component/kubernetes/kubernetes.go-79-85 (1)

79-85: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Reject non-string provider values during component validation.

ValidateComponent only validates provider when it’s already a non-empty string. If provider exists with the wrong type, it silently passes and can defer failure to runtime.

Suggested fix.
 func (p *ComponentProvider) ValidateComponent(config map[string]any) error {
 	defer perf.Track(nil, "kubernetes.ValidateComponent")()

 	if config == nil {
 		return nil
 	}
@@
-	if provider, ok := config["provider"].(string); ok && provider != "" {
-		switch provider {
-		case ProviderKubectl, ProviderKustomize:
-		default:
-			return fmt.Errorf("%w: provider must be %q or %q", errUtils.ErrComponentValidationFailed, ProviderKubectl, ProviderKustomize)
-		}
-	}
+	if rawProvider, exists := config["provider"]; exists {
+		provider, ok := rawProvider.(string)
+		if !ok {
+			return fmt.Errorf("%w: provider must be a string", errUtils.ErrComponentValidationFailed)
+		}
+		if provider != "" {
+			switch provider {
+			case ProviderKubectl, ProviderKustomize:
+			default:
+				return fmt.Errorf("%w: provider must be %q or %q", errUtils.ErrComponentValidationFailed, ProviderKubectl, ProviderKustomize)
+			}
+		}
+	}

 	return nil
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/kubernetes.go` around lines 79 - 85, The
ValidateComponent function only validates the provider field when it
successfully type-asserts to a string and is non-empty. If the provider key
exists in config but is not a string type, validation is silently skipped,
deferring the type error to runtime. Modify the provider validation logic to
explicitly check for and reject non-string provider values by returning a
validation error when the provider key exists but cannot be type-asserted as a
string, ensuring all type mismatches are caught during component validation.
cmd/kubernetes/kubernetes.go-98-117 (1)

98-117: ⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

Register operation-specific flags through the standard parser.

newOperationCommand defines command flags directly; this bypasses the command-specific flags.NewStandardParser() flow required for CLI consistency.

As per coding guidelines: “Commands MUST use flags.NewStandardParser() for command-specific flags.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@cmd/kubernetes/kubernetes.go` around lines 98 - 117, The command flags in the
`newOperationCommand` function are being registered directly using
`cmd.Flags().Bool()` and `cmd.Flags().String()` calls, which bypasses the
standard parser flow. Refactor the flag registration to use
`flags.NewStandardParser()` instead, following the established pattern for
command-specific flags. This ensures CLI consistency by routing all
operation-specific flags through the standard parser mechanism rather than
registering them directly on the command object.

Source: Coding guidelines

pkg/component/kubernetes/render.go-111-112 (1)

111-112: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Wrap these render failures with static Atmos error sentinels.

These returns rely on dynamic fmt.Errorf(...) only. The repo error contract requires static errors from errors/errors.go as the wrapped root.

As per coding guidelines: “All errors MUST be wrapped using static errors defined in errors/errors.go.”

Also applies to: 118-119, 126-127, 136-137, 165-166

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/render.go` around lines 111 - 112, The render
function in pkg/component/kubernetes/render.go uses dynamic fmt.Errorf calls to
return errors, but the codebase requires wrapping errors with static sentinels
defined in errors/errors.go. Replace all fmt.Errorf calls at lines 111-112,
118-119, 126-127, 136-137, and 165-166 with appropriate static error sentinels
from errors/errors.go, wrapping the underlying error using the %w verb. Import
the necessary error sentinels from errors/errors.go if not already imported, and
ensure each error return uses a static sentinel that matches the failure
scenario (e.g., render output directory creation, template parsing, etc.).

Source: Coding guidelines

pkg/component/kubernetes/render.go-104-105 (1)

104-105: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Use CLI output helpers instead of direct stdout writes.

This path writes directly to stdout (os.Stdout.Write / fmt.Fprintf(os.Stdout, ...)) instead of the repo’s output abstraction.

As per coding guidelines: “Never use fmt.Fprintf(os.Stdout/Stderr, ...) or fmt.Println(...). Use data.* or ui.* functions instead.”

Also applies to: 120-121, 140-141

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/render.go` around lines 104 - 105, Replace the
direct stdout write using os.Stdout.Write() with the repository's output
abstraction helpers. Instead of writing directly to stdout, use the appropriate
data.* or ui.* functions to handle the output. This pattern appears at the
anchor location (lines 104-105) and also needs to be applied at the sibling
locations mentioned in the comment (lines 120-121 and 140-141 in the same file).
For each occurrence, identify what data is being written and use the
corresponding output helper function from the repository's abstraction layer.

Source: Coding guidelines

pkg/component/kubernetes/render.go-29-39 (1)

29-39: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

--output does not fully override component split settings.

When component config sets render.output.split: true, setting --output only flips Output/OutputDir but leaves Split=true, which then fails validation (--split requires --output-dir).

Suggested fix.
 	if value, ok := flags["output"].(string); ok && value != "" {
 		options.Output = value
 		options.OutputDir = ""
+		options.Split = false
 	}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/render.go` around lines 29 - 39, When the "output"
flag is set in the flags parameter, the code currently only sets options.Output
and clears options.OutputDir, but it does not reset options.Split to false. This
causes a validation failure when the component configuration has previously set
Split to true, since the validation rule requires that split mode needs an
output directory. Add a line to set options.Split = false in the block where the
"output" flag is processed (where options.Output = value and options.OutputDir =
"") to ensure that enabling output mode properly overrides any prior split
setting from the component configuration.
🧹 Nitpick comments (6)
website/docs/stacks/components/index.mdx (1)

40-40: ⚡ Quick win

Close the admonition marker flush-left to avoid MDX parsing edge cases.

Use ::: without leading spaces so the :::info block termination is unambiguous.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/stacks/components/index.mdx` at line 40, The closing admonition
marker `:::` at line 40 has leading whitespace that can cause MDX parsing
ambiguity. Remove all leading spaces before the `:::` closing marker so it is
flush-left (starting at column 1), matching the standard MDX syntax for
terminating info admonition blocks.
examples/kubernetes/docker-compose.yml (1)

7-7: ⚡ Quick win

Pin a stable k3s version for reproducible examples.

Defaulting to latest can break docs/examples when upstream releases change behavior. A pinned default keeps onboarding and CI-style verification stable.

Suggested patch
-    image: "rancher/k3s:${K3S_VERSION:-latest}"
+    image: "rancher/k3s:${K3S_VERSION:-v1.30.2-k3s1}"
...
-    image: "rancher/k3s:${K3S_VERSION:-latest}"
+    image: "rancher/k3s:${K3S_VERSION:-v1.30.2-k3s1}"

Also applies to: 36-36

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/kubernetes/docker-compose.yml` at line 7, The k3s image
specification uses `latest` as the default version when K3S_VERSION is not set,
which can cause reproducibility issues and break examples when upstream releases
introduce behavior changes. Pin a stable k3s version in the default value
instead of using `latest`. Replace the `${K3S_VERSION:-latest}` expression with
a specific stable version number like `${K3S_VERSION:-v1.27.0}` (or another
appropriate stable release) to ensure consistent behavior. This change applies
to the image tag at line 7 and also at line 36 where the same pattern is used.
.claude/skills/component-development/SKILL.md (1)

61-67: ⚡ Quick win

Use the repo's actual parser helper here.

The guidance should match the codebase rule: command-specific flags use flags.NewStandardParser(). As written, this points future authors at a different API shape.

Suggested fix
- - Use `flags.StandardParser` for common flags.
+ - Use `flags.NewStandardParser()` for command-specific flags.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/component-development/SKILL.md around lines 61 - 67, The
documentation guidance currently references `flags.StandardParser` for handling
common command flags, but the actual codebase uses `flags.NewStandardParser()`
as the correct API. Update the guidance in the "Command Behavior" section to
replace the reference to `flags.StandardParser` with `flags.NewStandardParser()`
so that future authors are directed to the correct function name and API shape
that is actually used in the codebase.

Source: Coding guidelines

internal/exec/describe_affected_components.go (2)

598-619: ⚡ Quick win

Consolidate with existing isEqual helper.

isComponentSectionEqual duplicates the existing isEqual function in this package. Both perform the same remote-stack traversal and reflect.DeepEqual comparison.

♻️ Suggested change

Replace calls to isComponentSectionEqual with isEqual:

-		if isComponentSectionEqual(remoteStacks, stackName, cfg.KubernetesComponentType, componentName, value, section.name) {
+		if isEqual(remoteStacks, stackName, cfg.KubernetesComponentType, componentName, value, section.name) {

Then remove the isComponentSectionEqual function.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@internal/exec/describe_affected_components.go` around lines 598 - 619, The
isComponentSectionEqual function duplicates the logic of an existing isEqual
helper function in this package, as both perform the same remote-stack traversal
and reflect.DeepEqual comparison. Replace all calls to isComponentSectionEqual
with calls to the existing isEqual function, ensuring the arguments are adapted
appropriately for the isEqual function's signature, then delete the
isComponentSectionEqual function definition entirely.

536-538: ⚡ Quick win

Consider using checkComponentSections for consistency.

addKubernetesSectionAffected duplicates logic already handled by the shared checkComponentSections function used by Terraform, Helmfile, and Packer. The inline section list here could drift out of sync with the main componentSectionChecks table.

You could add Kubernetes-specific sections to the shared table or call checkComponentSections here and supplement with any truly Kubernetes-only sections.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@internal/exec/describe_affected_components.go` around lines 536 - 538, The
addKubernetesSectionAffected function duplicates logic already handled by the
shared checkComponentSections function used by Terraform, Helmfile, and Packer.
Refactor this code to use checkComponentSections for consistency, either by
adding Kubernetes-specific sections to the shared componentSectionChecks table
or by calling checkComponentSections and supplementing with any truly
Kubernetes-only sections that aren't covered by the shared logic. This ensures
all component types use the same section checking mechanism and prevents the
inline section list from drifting out of sync.
pkg/component/kubernetes/kubernetes.go (1)

14-115: ⚡ Quick win

Exported Kubernetes API declarations are undocumented across the package. Add Go doc comments consistently for exported symbols so lint/docs expectations stay aligned.

  • pkg/component/kubernetes/kubernetes.go#L14-L115: add doc comments for ComponentProvider and each exported method.
  • pkg/component/kubernetes/types.go#L3-L10: add doc comments for exported Operation and its exported constants.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/kubernetes.go` around lines 14 - 115, Add Go
documentation comments to all exported symbols in both affected files. In
pkg/component/kubernetes/kubernetes.go (lines 14-115), add a doc comment above
the ComponentProvider struct explaining its purpose, and add doc comments above
each exported method (GetType, GetGroup, GetBasePath, ListComponents,
ValidateComponent, Execute, GenerateArtifacts, and GetAvailableCommands)
describing what each method does. In pkg/component/kubernetes/types.go (lines
3-10), add documentation comments for the exported Operation type and all its
exported constants to explain their purpose and usage.

Source: Coding guidelines

Comment thread pkg/component/graph.go Resolved
Comment thread pkg/provisioner/target/git/git.go Resolved
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
@github-actions github-actions Bot added size/xxl and removed size/xl Extra large size PR labels Jun 15, 2026
@mergify

mergify Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Warning

This PR exceeds the recommended limit of 10,000 lines.

Large PRs are difficult to review and may be rejected due to their size.

Please verify that this PR does not address multiple issues.
Consider refactoring it into smaller, more focused PRs to facilitate a smoother review process.

@mergify

mergify Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jun 15, 2026
…ative-component

# Conflicts:
#	tests/fixtures/scenarios/native-ci/github-output.txt
#	tests/fixtures/scenarios/native-ci/github-step-summary.txt

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx (1)

40-40: ⚠️ Potential issue | 🟡 Minor

Remove (required) from --stack flag documentation.

The --stack flag is not unconditionally required. The flag definition sets Required: false, and the usage examples confirm --affected can be used without --stack. Update line 95 to remove <em>(required)</em> or clarify in the description that it's only required when using a component name.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx` at line 40, The
`--stack` flag documentation incorrectly marks the flag as "(required)" when it
is actually not unconditionally required (the flag definition has `Required:
false`). Remove the "(required)" text from the `--stack` flag documentation, or
alternatively clarify in the flag description that it is only required when
specifying component names directly, as it is not needed when using the
`--affected` flag.
internal/exec/describe_affected_components.go (1)

555-578: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Kubernetes affected checks currently under-report section changes.

addKubernetesSectionAffected uses a fixed section list, so Kubernetes provider changes and describe.affected.sections overrides are ignored. That can make --affected miss components changed only in those sections.

Suggested fix
 func addKubernetesSectionAffected(
@@
 ) error {
-	sections := []sectionCheck{
-		{sectionNameVars, affectedReasonStackVars},
-		{sectionNameEnv, affectedReasonStackEnv},
-		{sectionNameSource, affectedReasonStackSource},
-		{sectionNameProvision, affectedReasonStackProvision},
-		{sectionNameGenerate, affectedReasonStackGenerate},
-		{sectionNamePaths, affectedReasonStackPaths},
-		{sectionNameManifests, affectedReasonStackManifests},
-		{sectionNameRender, affectedReasonStackRender},
-	}
+	checks := append([]sectionCheck{}, resolveComponentSectionChecks(atmosConfig)...)
+	checks = append(checks,
+		sectionCheck{section: cfg.ProviderSectionName, reason: fmt.Sprintf("stack.%s", cfg.ProviderSectionName)},
+		sectionCheck{section: sectionNamePaths, reason: affectedReasonStackPaths},
+		sectionCheck{section: sectionNameManifests, reason: affectedReasonStackManifests},
+		sectionCheck{section: sectionNameRender, reason: affectedReasonStackRender},
+	)
@@
-	for _, section := range sections {
-		value, ok := (*componentSection)[section.section]
+	for _, section := range checks {
+		value, ok := (*componentSection)[section.section]
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@internal/exec/describe_affected_components.go` around lines 555 - 578, The
hardcoded sections list in the addKubernetesSectionAffected function is missing
the provider section and does not account for describe.affected.sections
configuration overrides, causing affected component checks to miss changes in
those sections. Replace the fixed sections slice initialization with dynamic
construction that includes the core Kubernetes sections (vars, env, source,
provision, generate, paths, manifests, render), adds the provider section, and
incorporates any custom sections from the describe.affected.sections
configuration in the atmosConfig parameter to ensure all relevant section
changes are properly detected.
🧹 Nitpick comments (1)
pkg/component/kubernetes/validate_test.go (1)

15-85: ⚡ Quick win

Prefer table-driven structure for the repeated validate scenarios.

These tests are clear, but converting the repeated option/offline/server-mode permutations into table-driven subtests will reduce duplication and align with repository test style.

As per coding guidelines: “Use table-driven tests for testing multiple scenarios in Go.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/component/kubernetes/validate_test.go` around lines 15 - 85, Refactor the
three separate test functions TestRunValidateOfflinePasses,
TestRunValidateOfflineFails, and TestRunValidateServerReturnsClientInitError
into a single table-driven test. Create a test case structure that captures the
scenario name, validateOptions configuration, the test objects to validate, the
mocked kubernetesSDKClient function (if needed), and the expected error
behavior. Iterate through each test case in subtests using t.Run, setting up the
newKubernetesSDKClient mock as needed for each scenario, then calling
runValidate with the appropriate objects and validateOptions. This approach
reduces duplication across the three separate test functions while maintaining
clear test scenario documentation.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/component/kubernetes/validate.go`:
- Around line 109-112: The client.Validate call at line 109 in the validate
function uses context.Background(), which provides no timeout and can cause
indefinite blocking if the API call hangs. Replace context.Background() with a
timeout-bound context created using context.WithTimeout to ensure the validation
operation has a deadline. This aligns with coding guidelines that require
deadlines/timeouts on context objects for operation time limits.

In `@pkg/provisioner/target/git/git.go`:
- Around line 149-151: The current validation check at lines 149-151 uses
strings.TrimSpace() but fails to normalize paths, allowing root-equivalent paths
like "./" and "a/.." to pass through and potentially reach os.RemoveAll. Replace
the validation logic to first normalize the path using filepath.Clean() before
checking if it equals "" or ".", ensuring all root-path-equivalent variants are
caught before ValidateRepoRelativePath is called. Additionally, add test cases
to TestWriteArtifactRejectsRootPath that cover the "./" and "a/.." path variants
to prevent regression of this vulnerability.

In `@website/docs/cli/commands/kubernetes/kubernetes-validate.mdx`:
- Around line 1-11: The kubernetes-validate.mdx file is missing required
sections from the CLI command documentation template. Add a `description` field
to the frontmatter block at the beginning of the file (between the existing `id:
validate` and the import statements) to provide a brief description of the
validate command. Additionally, add a Screengrab component section after the
import statements to include a command execution screenshot, following the
standard pattern used in other CLI command documentation pages.

---

Outside diff comments:
In `@internal/exec/describe_affected_components.go`:
- Around line 555-578: The hardcoded sections list in the
addKubernetesSectionAffected function is missing the provider section and does
not account for describe.affected.sections configuration overrides, causing
affected component checks to miss changes in those sections. Replace the fixed
sections slice initialization with dynamic construction that includes the core
Kubernetes sections (vars, env, source, provision, generate, paths, manifests,
render), adds the provider section, and incorporates any custom sections from
the describe.affected.sections configuration in the atmosConfig parameter to
ensure all relevant section changes are properly detected.

In `@website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx`:
- Line 40: The `--stack` flag documentation incorrectly marks the flag as
"(required)" when it is actually not unconditionally required (the flag
definition has `Required: false`). Remove the "(required)" text from the
`--stack` flag documentation, or alternatively clarify in the flag description
that it is only required when specifying component names directly, as it is not
needed when using the `--affected` flag.

---

Nitpick comments:
In `@pkg/component/kubernetes/validate_test.go`:
- Around line 15-85: Refactor the three separate test functions
TestRunValidateOfflinePasses, TestRunValidateOfflineFails, and
TestRunValidateServerReturnsClientInitError into a single table-driven test.
Create a test case structure that captures the scenario name, validateOptions
configuration, the test objects to validate, the mocked kubernetesSDKClient
function (if needed), and the expected error behavior. Iterate through each test
case in subtests using t.Run, setting up the newKubernetesSDKClient mock as
needed for each scenario, then calling runValidate with the appropriate objects
and validateOptions. This approach reduces duplication across the three separate
test functions while maintaining clear test scenario documentation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3d4e1092-b59d-4929-a1bf-b48e2a000c14

📥 Commits

Reviewing files that changed from the base of the PR and between 06e78a9 and a849ee2.

📒 Files selected for processing (70)
  • .claude/skills/component-development/SKILL.md
  • NOTICE
  • cmd/kubernetes/kubernetes.go
  • cmd/kubernetes/kubernetes_test.go
  • errors/errors.go
  • examples/kubernetes/docker-compose.yml
  • examples/kustomize/components/kubernetes/demo/base/deployment.yaml
  • examples/kustomize/docker-compose.yml
  • internal/exec/describe_affected_components.go
  • internal/exec/stack_processor_merge.go
  • internal/exec/stack_processor_merge_test.go
  • internal/exec/stack_processor_process_stacks.go
  • internal/exec/stack_processor_process_stacks_helpers.go
  • pkg/component/graph.go
  • pkg/component/graph_test.go
  • pkg/component/kubernetes/client.go
  • pkg/component/kubernetes/client_test.go
  • pkg/component/kubernetes/executor.go
  • pkg/component/kubernetes/executor_test.go
  • pkg/component/kubernetes/kubernetes.go
  • pkg/component/kubernetes/manifest.go
  • pkg/component/kubernetes/manifest_test.go
  • pkg/component/kubernetes/provider_test.go
  • pkg/component/kubernetes/render.go
  • pkg/component/kubernetes/render_test.go
  • pkg/component/kubernetes/testmain_test.go
  • pkg/component/kubernetes/types.go
  • pkg/component/kubernetes/validate.go
  • pkg/component/kubernetes/validate_test.go
  • pkg/hooks/event.go
  • pkg/provisioner/target/git/git.go
  • pkg/provisioner/target/git/git_test.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_--help.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--help_config_aliases_section.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_atmos_non-existent.stderr.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_help_flag_works.stdout.golden
  • tests/snapshots/TestCLICommands_indentation.stdout.golden
  • tests/snapshots/TestCLICommands_secrets-masking_describe_config.stdout.golden
  • website/docs/cli/commands/kubernetes/kubernetes-apply.mdx
  • website/docs/cli/commands/kubernetes/kubernetes-delete.mdx
  • website/docs/cli/commands/kubernetes/kubernetes-deploy.mdx
  • website/docs/cli/commands/kubernetes/kubernetes-diff.mdx
  • website/docs/cli/commands/kubernetes/kubernetes-render.mdx
  • website/docs/cli/commands/kubernetes/kubernetes-validate.mdx
  • website/docs/cli/commands/kubernetes/usage.mdx
  • website/docs/cli/configuration/components/index.mdx
  • website/docs/cli/configuration/components/terraform.mdx
  • website/docs/stacks/components/ansible.mdx
  • website/docs/stacks/components/helmfile.mdx
  • website/docs/stacks/components/index.mdx
  • website/docs/stacks/components/metadata.mdx
  • website/docs/stacks/components/packer.mdx
✅ Files skipped from review due to trivial changes (17)
  • 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_imports.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--help.stdout.golden
  • tests/snapshots/TestCLICommands_describe_component_with_relative_path.stdout.golden
  • pkg/component/kubernetes/testmain_test.go
  • tests/snapshots/TestCLICommands_atmos_describe_component_mock_-s_dev_(stack-names_example).stdout.golden
  • tests/snapshots/TestCLICommands_atmos_non-existent.stderr.golden
  • tests/snapshots/TestCLICommands_describe_component_with_current_directory_(.).stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_configuration.stdout.golden
  • tests/snapshots/TestCLICommands_describe_component_with_component_name_(backward_compatibility).stdout.golden
  • .claude/skills/component-development/SKILL.md
  • website/docs/cli/configuration/components/terraform.mdx
  • tests/fixtures/scenarios/native-ci/github-step-summary.txt
  • website/docs/cli/commands/kubernetes/usage.mdx
  • website/docs/stacks/components/index.mdx
  • NOTICE
🚧 Files skipped from review as they are similar to previous changes (20)
  • pkg/component/kubernetes/types.go
  • internal/exec/stack_processor_process_stacks_helpers.go
  • examples/kustomize/components/kubernetes/demo/base/deployment.yaml
  • pkg/component/kubernetes/kubernetes.go
  • pkg/hooks/event.go
  • examples/kubernetes/docker-compose.yml
  • cmd/kubernetes/kubernetes.go
  • cmd/kubernetes/kubernetes_test.go
  • internal/exec/stack_processor_merge.go
  • pkg/component/kubernetes/manifest.go
  • pkg/component/kubernetes/manifest_test.go
  • pkg/component/graph.go
  • pkg/component/kubernetes/client_test.go
  • internal/exec/stack_processor_process_stacks.go
  • pkg/component/kubernetes/render.go
  • pkg/provisioner/target/git/git_test.go
  • pkg/component/kubernetes/provider_test.go
  • pkg/component/kubernetes/executor.go
  • pkg/component/kubernetes/render_test.go
  • pkg/component/kubernetes/executor_test.go

Comment thread pkg/component/kubernetes/validate.go Resolved
Comment thread pkg/provisioner/target/git/git.go Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
website/docs/cli/configuration/components/terraform.mdx (1)

67-67: ⚠️ Potential issue | 🟡 Minor

Fix mismatched code-fence closures.

Lines 67 and 216 close YAML code blocks with 4 backticks while their opening fences use 3. Docusaurus/MDX expects matching backtick counts, so update both to use 3 backticks instead—this prevents potential rendering issues on the website.

Locations to fix
  • Line 67: change ```````` to ```
  • Line 216: change ```````` to ```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/cli/configuration/components/terraform.mdx` at line 67, The YAML
code blocks in website/docs/cli/configuration/components/terraform.mdx have
mismatched code-fence closures. At line 67, change the closing fence from 4
backticks to 3 backticks. At line 216, make the same change—update the closing
fence from 4 backticks to 3 backticks. Both opening fences use 3 backticks, so
the closing fences must match to prevent rendering issues in Docusaurus/MDX.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@website/docs/cli/configuration/components/terraform.mdx`:
- Line 67: The YAML code blocks in
website/docs/cli/configuration/components/terraform.mdx have mismatched
code-fence closures. At line 67, change the closing fence from 4 backticks to 3
backticks. At line 216, make the same change—update the closing fence from 4
backticks to 3 backticks. Both opening fences use 3 backticks, so the closing
fences must match to prevent rendering issues in Docusaurus/MDX.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 810e3dfe-1858-4ee6-9ff3-d901b047efeb

📥 Commits

Reviewing files that changed from the base of the PR and between a849ee2 and d1646ba.

📒 Files selected for processing (27)
  • cmd/root.go
  • errors/errors.go
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • pkg/provisioner/source/source.go
  • pkg/schema/schema.go
  • tests/snapshots/TestCLICommands_atmos_--chdir_config_isolation.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--help.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--help_config_aliases_section.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_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_help_flag_works.stdout.golden
  • tests/snapshots/TestCLICommands_indentation.stdout.golden
  • tests/snapshots/TestCLICommands_secrets-masking_describe_config.stdout.golden
  • website/docs/cli/configuration/components/terraform.mdx
  • website/src/data/roadmap.js
💤 Files with no reviewable changes (3)
  • tests/snapshots/TestCLICommands_atmos_--help.stdout.golden
  • tests/snapshots/TestCLICommands_help_flag_works.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--help_config_aliases_section.stdout.golden
✅ Files skipped from review due to trivial changes (12)
  • tests/snapshots/TestCLICommands_atmos_describe_component_mock_-s_production_(stack-names_example).stdout.golden
  • tests/snapshots/TestCLICommands_describe_component_with_stack_flag.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_component_mock_-s_dev_(stack-names_example).stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_dev_(native-terraform_example).stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_config_imports.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--chdir_config_isolation.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_config_-f_yaml.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_no-name-prod.stdout.golden
  • tests/snapshots/TestCLICommands_describe_component_with_component_name_(backward_compatibility).stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_production_(native-terraform_example).stdout.golden
  • tests/snapshots/TestCLICommands_describe_component_with_current_directory_(.).stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_config.stdout.golden
🚧 Files skipped from review as they are similar to previous changes (11)
  • tests/snapshots/TestCLICommands_describe_component_with_relative_path.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_configuration.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_component_vpc_-s_my-legacy-prod-stack.stdout.golden
  • pkg/provisioner/source/source.go
  • tests/snapshots/TestCLICommands_secrets-masking_describe_config.stdout.golden
  • cmd/root.go
  • tests/snapshots/TestCLICommands_indentation.stdout.golden
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • errors/errors.go
  • pkg/schema/schema.go
  • website/src/data/roadmap.js

@mergify mergify Bot removed the conflict This PR has conflicts label Jun 15, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@internal/exec/stack_processor_process_stacks_helpers_overrides.go`:
- Around line 72-79: The ComponentOverridesSecrets field is not initialized
upfront like the other override maps (ComponentOverridesVars,
ComponentOverridesSettings, ComponentOverridesEnv, ComponentOverridesAuth),
causing it to remain nil when the condition checking for secrets in
componentOverrides is not met. Initialize ComponentOverridesSecrets to an empty
map at the same location where the other override maps are initialized (around
lines 18-21) to ensure consistent initialization and prevent nil map issues
downstream.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0d83fce9-2bbd-4bc5-980d-92f63508bea9

📥 Commits

Reviewing files that changed from the base of the PR and between d1646ba and e417410.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (24)
  • NOTICE
  • cmd/root.go
  • errors/errors.go
  • go.mod
  • internal/exec/describe_affected_components.go
  • internal/exec/describe_component.go
  • internal/exec/stack_processor_cache.go
  • internal/exec/stack_processor_merge.go
  • internal/exec/stack_processor_process_stacks.go
  • internal/exec/stack_processor_process_stacks_helpers.go
  • internal/exec/stack_processor_process_stacks_helpers_extraction.go
  • internal/exec/stack_processor_process_stacks_helpers_inheritance.go
  • internal/exec/stack_processor_process_stacks_helpers_overrides.go
  • internal/exec/stack_processor_utils.go
  • pkg/config/const.go
  • pkg/datafetcher/schema/atmos/manifest/1.0.json
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • pkg/schema/schema.go
  • tests/snapshots/TestCLICommands_atmos_--help.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--help_config_aliases_section.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_config.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_non-existent.stderr.golden
  • tests/snapshots/TestCLICommands_help_flag_works.stdout.golden
  • tests/snapshots/TestCLICommands_secrets-masking_describe_config.stdout.golden
💤 Files with no reviewable changes (6)
  • tests/snapshots/TestCLICommands_help_flag_works.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_--help.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_describe_config.stdout.golden
  • tests/snapshots/TestCLICommands_atmos_non-existent.stderr.golden
  • tests/snapshots/TestCLICommands_atmos_--help_config_aliases_section.stdout.golden
  • tests/snapshots/TestCLICommands_secrets-masking_describe_config.stdout.golden
✅ Files skipped from review due to trivial changes (1)
  • NOTICE
🚧 Files skipped from review as they are similar to previous changes (15)
  • pkg/config/const.go
  • internal/exec/describe_component.go
  • cmd/root.go
  • internal/exec/stack_processor_process_stacks_helpers.go
  • internal/exec/stack_processor_cache.go
  • internal/exec/stack_processor_process_stacks_helpers_inheritance.go
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • pkg/schema/schema.go
  • internal/exec/stack_processor_process_stacks.go
  • internal/exec/stack_processor_merge.go
  • internal/exec/stack_processor_process_stacks_helpers_extraction.go
  • go.mod
  • errors/errors.go
  • pkg/datafetcher/schema/atmos/manifest/1.0.json
  • internal/exec/stack_processor_utils.go

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]>
…ig 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]>
…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]>
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]>
@mergify

mergify Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jun 29, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
examples/demo-helmfile/atmos.yaml (1)

60-64: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Teardown may not run if apply fails.

If atmos helmfile apply demo -s dev errors out, the subsequent atmos emulator down kubernetes -s dev step is unlikely to execute, leaving a privileged k3s container running on the runner (and a dirty local machine for users). For a demo this is a soft edge, but a guaranteed-cleanup pattern keeps reruns clean. Consider documenting/relying on a separate atmos teardown command, or having the test command ensure teardown regardless of the apply outcome.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/demo-helmfile/atmos.yaml` around lines 60 - 64, The demo workflow
can leave the k3s emulator running because the teardown step after `atmos
helmfile apply demo -s dev` may never run if `apply` fails. Update the `steps`
sequence in `atmos.yaml` so cleanup is guaranteed regardless of the apply
outcome, either by using a dedicated teardown command/path or by restructuring
the flow around the emulator lifecycle commands (`atmos emulator up kubernetes
-s dev`, `atmos helmfile apply demo -s dev`, `atmos emulator down kubernetes -s
dev`) to always execute teardown.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@examples/local-gitops/atmos.yaml`:
- Around line 75-77: The cleanup step in the local-gitops workflow uses a
POSIX-only shell command, which breaks portability for `atmos gitops down` on
Windows. Replace the direct `rm -rf .atmos/git/deployments` action in the
`atmos.yaml` example with a platform-neutral deletion path, such as an
Atmos-managed cleanup helper or an abstraction invoked by the workflow, so the
same `gitops down` flow works across Linux, macOS, and Windows.

---

Nitpick comments:
In `@examples/demo-helmfile/atmos.yaml`:
- Around line 60-64: The demo workflow can leave the k3s emulator running
because the teardown step after `atmos helmfile apply demo -s dev` may never run
if `apply` fails. Update the `steps` sequence in `atmos.yaml` so cleanup is
guaranteed regardless of the apply outcome, either by using a dedicated teardown
command/path or by restructuring the flow around the emulator lifecycle commands
(`atmos emulator up kubernetes -s dev`, `atmos helmfile apply demo -s dev`,
`atmos emulator down kubernetes -s dev`) to always execute teardown.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 55f64719-2830-45e2-a97a-b45331415080

📥 Commits

Reviewing files that changed from the base of the PR and between 4bc27ec and 35ae9bf.

📒 Files selected for processing (39)
  • .github/workflows/test.yml
  • cmd/kubernetes/kubernetes.go
  • cmd/kubernetes/kubernetes_test.go
  • cmd/root.go
  • docs/prd/experimental-features-system.md
  • docs/prd/git-server-emulator.md
  • docs/prd/host-runtime-containers.md
  • errors/errors.go
  • examples/README.md
  • examples/demo-helmfile/README.md
  • examples/demo-helmfile/atmos.yaml
  • examples/demo-helmfile/docker-compose.yml
  • examples/demo-helmfile/stacks/catalog/demo.yaml
  • examples/demo-helmfile/stacks/catalog/emulator/kubernetes.yaml
  • examples/demo-helmfile/stacks/deploy/dev/demo.yaml
  • examples/demo-helmfile/stacks/deploy/prod/demo.yaml
  • examples/demo-helmfile/stacks/deploy/staging/demo.yaml
  • examples/demo-helmfile/stacks/mixins/k3s.yaml
  • examples/kubernetes/README.md
  • examples/kubernetes/atmos.yaml
  • examples/kubernetes/stacks/catalog/emulator/kubernetes.yaml
  • examples/kubernetes/stacks/deploy/dev/demo.yaml
  • examples/kustomize/README.md
  • examples/kustomize/atmos.yaml
  • examples/kustomize/stacks/catalog/emulator/kubernetes.yaml
  • examples/kustomize/stacks/deploy/dev/demo.yaml
  • examples/local-gitops/.gitignore
  • examples/local-gitops/README.md
  • examples/local-gitops/atmos.yaml
  • examples/local-gitops/stacks/catalog/demo-app.yaml
  • examples/local-gitops/stacks/catalog/emulator/gitea.yaml
  • examples/local-gitops/stacks/catalog/emulator/kubernetes.yaml
  • examples/local-gitops/stacks/catalog/flux.yaml
  • examples/local-gitops/stacks/deploy/local.yaml
  • go.mod
  • internal/exec/describe_component.go
  • internal/exec/helmfile.go
  • internal/exec/stack_processor_process_stacks.go
  • lychee.toml
💤 Files with no reviewable changes (4)
  • examples/demo-helmfile/stacks/mixins/k3s.yaml
  • examples/demo-helmfile/docker-compose.yml
  • examples/demo-helmfile/stacks/deploy/staging/demo.yaml
  • examples/demo-helmfile/stacks/deploy/prod/demo.yaml
✅ Files skipped from review due to trivial changes (10)
  • examples/kustomize/stacks/deploy/dev/demo.yaml
  • examples/kubernetes/stacks/catalog/emulator/kubernetes.yaml
  • examples/local-gitops/.gitignore
  • examples/demo-helmfile/stacks/catalog/emulator/kubernetes.yaml
  • lychee.toml
  • examples/README.md
  • docs/prd/experimental-features-system.md
  • examples/kustomize/README.md
  • examples/kubernetes/README.md
  • internal/exec/describe_component.go
🚧 Files skipped from review as they are similar to previous changes (7)
  • examples/kubernetes/stacks/deploy/dev/demo.yaml
  • cmd/root.go
  • internal/exec/stack_processor_process_stacks.go
  • cmd/kubernetes/kubernetes.go
  • errors/errors.go
  • cmd/kubernetes/kubernetes_test.go
  • go.mod

Comment thread examples/local-gitops/atmos.yaml Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
website/docs/workflows/workflows/workflow/steps/type/container.mdx (1)

243-244: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Include runtime in the top-level step fields
runtime is also a step-level field (runtime.host), so the top-level summary should list it alongside provider and runtime_auto_start rather than implying those are the only keys kept outside with:.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/workflows/workflows/workflow/steps/type/container.mdx` around
lines 243 - 244, The top-level step fields summary in the container step docs
omits runtime even though `runtime.host` is also supported at the step level.
Update the summary near the `runtime` entry so it explicitly lists `runtime`
alongside `provider` and `runtime_auto_start`, and make sure the wording in the
`runtime` section and any related step-field overview reflects that
`runtime.host` may be set outside `with:` as a top-level step field.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/datafetcher/schema/atmos/manifest/1.0.json`:
- Around line 2117-2125: Update the workflow-step schema so it matches the
decoder in WorkflowStep.UnmarshalYAML and effectiveRunStep: add the top-level
runtime block with runtime.host support, and adjust runtime_auto_start only if
it is still intended as a legacy field. Also narrow the with description to
container-specific usage, since it is only routed for container
Build/Run/Push/Inspect steps and should not be presented as generic step
parameters.

In `@pkg/schema/workflow.go`:
- Around line 387-410: The workflow step polymorphic decode path is missing
support for the new needs field, so scalar or array values never get expanded
into WorkflowStep.Needs. Update the YAML split/decode flow in
splitStepPolymorphicNodes and applyStepPolymorphicNodes to peel off needs
alongside for, then decode it with the same string-or-slice handling used for
for into the step target field. Make sure WorkflowStep.UnmarshalYAML still
routes through these helpers so needs is populated consistently with the other
polymorphic fields.

---

Outside diff comments:
In `@website/docs/workflows/workflows/workflow/steps/type/container.mdx`:
- Around line 243-244: The top-level step fields summary in the container step
docs omits runtime even though `runtime.host` is also supported at the step
level. Update the summary near the `runtime` entry so it explicitly lists
`runtime` alongside `provider` and `runtime_auto_start`, and make sure the
wording in the `runtime` section and any related step-field overview reflects
that `runtime.host` may be set outside `with:` as a top-level step field.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b1baaa47-278c-4e1f-aceb-22c44b6f4238

📥 Commits

Reviewing files that changed from the base of the PR and between 35ae9bf and a58fed3.

📒 Files selected for processing (12)
  • .github/workflows/test.yml
  • cmd/root.go
  • pkg/datafetcher/schema/atmos/manifest/1.0.json
  • pkg/datafetcher/schema/config/global/1.0.json
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • pkg/runner/step/container_actions_extra_test.go
  • pkg/runner/step/container_run.go
  • pkg/schema/schema.go
  • pkg/schema/workflow.go
  • website/docs/workflows/workflows/workflow/steps/type/container.mdx
  • website/src/data/roadmap.js
  • website/static/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json
✅ Files skipped from review due to trivial changes (3)
  • pkg/datafetcher/schema/config/global/1.0.json
  • cmd/root.go
  • website/src/data/roadmap.js
🚧 Files skipped from review as they are similar to previous changes (4)
  • website/static/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json
  • pkg/schema/schema.go
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • .github/workflows/test.yml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
website/docs/workflows/workflows/workflow/steps/type/container.mdx (1)

243-244: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Include runtime in the top-level step fields
runtime is also a step-level field (runtime.host), so the top-level summary should list it alongside provider and runtime_auto_start rather than implying those are the only keys kept outside with:.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/docs/workflows/workflows/workflow/steps/type/container.mdx` around
lines 243 - 244, The top-level step fields summary in the container step docs
omits runtime even though `runtime.host` is also supported at the step level.
Update the summary near the `runtime` entry so it explicitly lists `runtime`
alongside `provider` and `runtime_auto_start`, and make sure the wording in the
`runtime` section and any related step-field overview reflects that
`runtime.host` may be set outside `with:` as a top-level step field.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/datafetcher/schema/atmos/manifest/1.0.json`:
- Around line 2117-2125: Update the workflow-step schema so it matches the
decoder in WorkflowStep.UnmarshalYAML and effectiveRunStep: add the top-level
runtime block with runtime.host support, and adjust runtime_auto_start only if
it is still intended as a legacy field. Also narrow the with description to
container-specific usage, since it is only routed for container
Build/Run/Push/Inspect steps and should not be presented as generic step
parameters.

In `@pkg/schema/workflow.go`:
- Around line 387-410: The workflow step polymorphic decode path is missing
support for the new needs field, so scalar or array values never get expanded
into WorkflowStep.Needs. Update the YAML split/decode flow in
splitStepPolymorphicNodes and applyStepPolymorphicNodes to peel off needs
alongside for, then decode it with the same string-or-slice handling used for
for into the step target field. Make sure WorkflowStep.UnmarshalYAML still
routes through these helpers so needs is populated consistently with the other
polymorphic fields.

---

Outside diff comments:
In `@website/docs/workflows/workflows/workflow/steps/type/container.mdx`:
- Around line 243-244: The top-level step fields summary in the container step
docs omits runtime even though `runtime.host` is also supported at the step
level. Update the summary near the `runtime` entry so it explicitly lists
`runtime` alongside `provider` and `runtime_auto_start`, and make sure the
wording in the `runtime` section and any related step-field overview reflects
that `runtime.host` may be set outside `with:` as a top-level step field.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b1baaa47-278c-4e1f-aceb-22c44b6f4238

📥 Commits

Reviewing files that changed from the base of the PR and between 35ae9bf and a58fed3.

📒 Files selected for processing (12)
  • .github/workflows/test.yml
  • cmd/root.go
  • pkg/datafetcher/schema/atmos/manifest/1.0.json
  • pkg/datafetcher/schema/config/global/1.0.json
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • pkg/runner/step/container_actions_extra_test.go
  • pkg/runner/step/container_run.go
  • pkg/schema/schema.go
  • pkg/schema/workflow.go
  • website/docs/workflows/workflows/workflow/steps/type/container.mdx
  • website/src/data/roadmap.js
  • website/static/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json
✅ Files skipped from review due to trivial changes (3)
  • pkg/datafetcher/schema/config/global/1.0.json
  • cmd/root.go
  • website/src/data/roadmap.js
🚧 Files skipped from review as they are similar to previous changes (4)
  • website/static/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json
  • pkg/schema/schema.go
  • pkg/datafetcher/schema/stacks/stack-config/1.0.json
  • .github/workflows/test.yml
🛑 Comments failed to post (2)
pkg/datafetcher/schema/atmos/manifest/1.0.json (1)

2117-2125: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

This workflow-step schema block is out of sync with the decoder.

WorkflowStep/effectiveRunStep now support a top-level runtime block (runtime.host is the new shorthand), but this schema still exposes only runtime_auto_start. And with is described as generic step parameters even though WorkflowStep.UnmarshalYAML only routes it into container Build/Run/Push/Inspect. That creates both false negatives (runtime flagged by schema) and false positives (with looks supported for non-container steps).

Suggested schema update
                       "runtime_auto_start": {
                         "type": "boolean",
                         "description": "Automatically start the container runtime if it is not already running."
                       },
+                      "runtime": {
+                        "$ref": "`#/definitions/container_runtime`"
+                      },
                       "with": {
                         "type": "object",
-                        "description": "Parameters for the step named by 'type' (and 'action' where applicable). Validated by the step handler at run time. For container steps this holds image, command, ports, mounts, build context, etc.",
+                        "description": "Parameters for container steps. Routed by `action` into the container build/run/push/inspect config.",
                         "additionalProperties": true
                       }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

                      "runtime_auto_start": {
                        "type": "boolean",
                        "description": "Automatically start the container runtime if it is not already running."
                      },
                      "runtime": {
                        "$ref": "`#/definitions/container_runtime`"
                      },
                      "with": {
                        "type": "object",
                        "description": "Parameters for container steps. Routed by `action` into the container build/run/push/inspect config.",
                        "additionalProperties": true
                      }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/datafetcher/schema/atmos/manifest/1.0.json` around lines 2117 - 2125,
Update the workflow-step schema so it matches the decoder in
WorkflowStep.UnmarshalYAML and effectiveRunStep: add the top-level runtime block
with runtime.host support, and adjust runtime_auto_start only if it is still
intended as a legacy field. Also narrow the with description to
container-specific usage, since it is only routed for container
Build/Run/Push/Inspect steps and should not be presented as generic step
parameters.
pkg/schema/workflow.go (1)

387-410: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== workflow.go outline ==\n'
ast-grep outline pkg/schema/workflow.go --view expanded || true

printf '\n== relevant workflow.go slice ==\n'
nl -ba pkg/schema/workflow.go | sed -n '330,470p'

printf '\n== search decodeStringOrSlice / needs ==\n'
rg -n "decodeStringOrSlice|\\bneeds\\b" pkg/schema/workflow.go pkg -g'*.go' -g'*.json' | sed -n '1,200p'

printf '\n== manifest schema snippet ==\n'
python3 - <<'PY'
import json
path='pkg/datafetcher/schema/atmos/manifest/1.0.json'
with open(path) as f:
    data=json.load(f)
# search for needs definitions
def walk(obj, path=''):
    if isinstance(obj, dict):
        for k,v in obj.items():
            new = f"{path}.{k}" if path else k
            if k == 'needs':
                print('PATH', new)
                print(json.dumps(v, indent=2)[:3000])
            walk(v, new)
    elif isinstance(obj, list):
        for i,v in enumerate(obj):
            walk(v, f"{path}[{i}]")
walk(data)
PY

Repository: cloudposse/atmos

Length of output: 22375


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== workflow.go slice ==\n'
sed -n '340,455p' pkg/schema/workflow.go | cat -n

printf '\n== schema needs definition ==\n'
python3 - <<'PY'
import json
path='pkg/datafetcher/schema/atmos/manifest/1.0.json'
with open(path) as f:
    data=json.load(f)

def walk(obj, path=''):
    if isinstance(obj, dict):
        for k, v in obj.items():
            new = f"{path}.{k}" if path else k
            if k == 'needs':
                print('PATH', new)
                print(json.dumps(v, indent=2))
            walk(v, new)
    elif isinstance(obj, list):
        for i, v in enumerate(obj):
            walk(v, f"{path}[{i}]")
walk(data)
PY

Repository: cloudposse/atmos

Length of output: 5898


needs needs the same decode path as for.

WorkflowStep.UnmarshalYAML only special-cases output, with, background, and for, but the schema now allows needs to be a scalar or array. A scalar needs still has nowhere to expand into WorkflowStep.Needs []string. Add needs to the split/decode flow, or narrow the schema back to arrays.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/schema/workflow.go` around lines 387 - 410, The workflow step polymorphic
decode path is missing support for the new needs field, so scalar or array
values never get expanded into WorkflowStep.Needs. Update the YAML split/decode
flow in splitStepPolymorphicNodes and applyStepPolymorphicNodes to peel off
needs alongside for, then decode it with the same string-or-slice handling used
for for into the step target field. Make sure WorkflowStep.UnmarshalYAML still
routes through these helpers so needs is populated consistently with the other
polymorphic fields.

@mergify

mergify Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏

@mergify mergify Bot added the conflict This PR has conflicts label Jun 30, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
pkg/container/ephemeral.go (1)

57-57: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Terminate this new declaration comment with a period.

This inline field comment will violate the repo’s godot rule as written.

As per coding guidelines, "**/*.go: All comments must end with periods (enforced by godot linter)."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/container/ephemeral.go` at line 57, The inline field comment on Host in
ephemeral.go is missing terminal punctuation and will fail the godot lint rule.
Update the comment attached to the Host field so it ends with a period, keeping
the wording the same and only adjusting the comment formatting.

Source: Coding guidelines

pkg/container/lifecycle.go (1)

37-37: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Terminate this new declaration comment with a period.

Same godot issue here.

As per coding guidelines, "**/*.go: All comments must end with periods (enforced by godot linter)."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/container/lifecycle.go` at line 37, The new field comment on Host in
lifecycle.go should end with a period to satisfy godot; update the inline
comment for the Host declaration so it follows the project’s comment punctuation
rule.

Source: Coding guidelines

pkg/emulator/manager_more_test.go (1)

268-289: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

The zero-timeout setup is immediately undone.

Lines 282-285 reset kubeconfigReadyTimeout to time.Millisecond, so this test no longer forces the single-attempt path described above and AnyTimes() hides that drift. Keep the timeout at 0 for this test, or drop the single-attempt claim and assert retry behavior instead.

Suggested cleanup.
 	origTimeout := kubeconfigReadyTimeout
-	defer func() { kubeconfigReadyTimeout = origTimeout }()
+	origInterval := kubeconfigPollInterval
+	t.Cleanup(func() {
+		kubeconfigReadyTimeout = origTimeout
+		kubeconfigPollInterval = origInterval
+	})
 	kubeconfigReadyTimeout = 0
+	kubeconfigPollInterval = time.Millisecond
@@
-	oldTimeout := kubeconfigReadyTimeout
-	oldInterval := kubeconfigPollInterval
-	kubeconfigReadyTimeout = time.Millisecond
-	kubeconfigPollInterval = time.Millisecond
-	t.Cleanup(func() {
-		kubeconfigReadyTimeout = oldTimeout
-		kubeconfigPollInterval = oldInterval
-	})
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/emulator/manager_more_test.go` around lines 268 - 289, The kubeconfig
readiness test setup is being overwritten, so it no longer exercises the
intended single-attempt path. In manager_more_test.go, keep
kubeconfigReadyTimeout pinned to 0 for this test and avoid resetting it to
kubeconfigReadyTimeout = time.Millisecond; if the goal is to test retries
instead, update the expectation around NewMockRuntime.Exec and the test
description accordingly. Use the kubeconfigReadyTimeout, kubeconfigPollInterval,
and NewMockRuntime.Exec setup to locate the fix.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@pkg/container/ephemeral.go`:
- Line 57: The inline field comment on Host in ephemeral.go is missing terminal
punctuation and will fail the godot lint rule. Update the comment attached to
the Host field so it ends with a period, keeping the wording the same and only
adjusting the comment formatting.

In `@pkg/container/lifecycle.go`:
- Line 37: The new field comment on Host in lifecycle.go should end with a
period to satisfy godot; update the inline comment for the Host declaration so
it follows the project’s comment punctuation rule.

In `@pkg/emulator/manager_more_test.go`:
- Around line 268-289: The kubeconfig readiness test setup is being overwritten,
so it no longer exercises the intended single-attempt path. In
manager_more_test.go, keep kubeconfigReadyTimeout pinned to 0 for this test and
avoid resetting it to kubeconfigReadyTimeout = time.Millisecond; if the goal is
to test retries instead, update the expectation around NewMockRuntime.Exec and
the test description accordingly. Use the kubeconfigReadyTimeout,
kubeconfigPollInterval, and NewMockRuntime.Exec setup to locate the fix.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5792b64e-45ad-4a4a-a188-046a6626c91b

📥 Commits

Reviewing files that changed from the base of the PR and between a58fed3 and d70ed1f.

📒 Files selected for processing (16)
  • .github/workflows/test.yml
  • cmd/root.go
  • errors/errors.go
  • internal/exec/helmfile.go
  • lychee.toml
  • pkg/container/ephemeral.go
  • pkg/container/lifecycle.go
  • pkg/container/podman.go
  • pkg/container/podman_test.go
  • pkg/datafetcher/schema/atmos/manifest/1.0.json
  • pkg/datafetcher/schema/config/global/1.0.json
  • pkg/emulator/kubeconfig.go
  • pkg/emulator/manager.go
  • pkg/emulator/manager_more_test.go
  • pkg/schema/schema.go
  • pkg/schema/workflow.go
✅ Files skipped from review due to trivial changes (1)
  • lychee.toml
🚧 Files skipped from review as they are similar to previous changes (7)
  • pkg/datafetcher/schema/config/global/1.0.json
  • cmd/root.go
  • internal/exec/helmfile.go
  • pkg/schema/schema.go
  • pkg/datafetcher/schema/atmos/manifest/1.0.json
  • .github/workflows/test.yml
  • errors/errors.go

@atmos-pro

atmos-pro Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Tip

Atmos Pro  

No affected stacks workflow was detected for this pull request.
If this is expected, no action is needed.
Learn More. Ask AI.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

These changes were released in v1.222.0-rc.15.

This branch was successfully deployed

1 active deployment
preview — 093a8b5b Deployed Jun 30, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor New features that do not break anything size/xxl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants