Nick Dunn
08/05/2026, 12:31 AMkustomization.yaml , but it seems like the name might be automatically generated. Is it possible to override this behavior? I saw the split setting for rendering, but I didn't see something similar when deploying an inline manifest.Erik Osterman (Cloud Posse)
08/05/2026, 2:08 AMErik Osterman (Cloud Posse)
08/05/2026, 2:08 AMErik Osterman (Cloud Posse)
08/05/2026, 2:08 AMErik Osterman (Cloud Posse)
08/05/2026, 2:09 AMErik Osterman (Cloud Posse)
08/05/2026, 2:10 AMErik Osterman (Cloud Posse)
08/05/2026, 2:10 AMErik Osterman (Cloud Posse)
08/05/2026, 2:17 AMErik Osterman (Cloud Posse)
08/05/2026, 2:18 AMErik Osterman (Cloud Posse)
08/05/2026, 2:19 AMErik Osterman (Cloud Posse)
08/05/2026, 2:19 AMNick Dunn
08/05/2026, 2:24 PMmetadata.name in a Kustomize file, it's because Atmos errors out otherwise...)
kubernetes:
gitops:
provision:
targets:
deployment-repo:
kind: git
repository: config-repo
path: "kustomize/overlays/{{ .vars.environment }}/kustomization.yaml"
commit:
message: "Render manifests for {{ .vars.environment }}"
vars:
region: "{{ .vars.aws_region }}"
manifests:
- apiVersion: kustomize.config.k8s.io/v1beta1
kind: Component
metadata:
name: cert-manager
patches:
- target:
kind: "ClusterIssuer"
name: "letsencrypt-dns"
patch: |
- op: add
path: /spec/acme/solvers
value:
- dns01:
cnameStrategy: Follow
route53:
region: "{{ .vars.region }}"
hostedZoneID: "{{ atmos.Resolve "!terraform.state route53 public_zone_id" }}"
And the repository mentioned was configured like so:
git:
repositories:
config-repo:
uri: REDACTED
branch: terraform-patches
clone:
depth: 1
commit:
signing: auto
author:
name: atmos[bot]
email: atmos-bot@acme.com
push:
retries: 3
init:
keep_history: false
Then I ran this:
atmos kubernetes deploy gitops --stack $STACK_NAME --target deployment-repo
You can hopefully see that the idea here was to be able to create Kustomize patches that are dynamically generated by our IaC. Usually I would need to update the Kustomize configurations for cert-manager manually with the Route53 zone ID or have Terraform deploy the ArgoCD Application with a patch.
This nearly worked. The problem is, Kustomize cannot include a remote configuration without a kustomization.yaml file. But it seems I'm unable to configure the desired name of the file that gets rendered and committed to the repository. In the above example, it actually created a directory called kustomization.yaml and then a random file name within there (I say "random", but I'm guessing there's a certain logic to it). Of course, I assume no one thought to use this functionality this way (I certainly hadn't).Nick Dunn
08/05/2026, 2:27 PMErik Osterman (Cloud Posse)
08/05/2026, 3:18 PMErik Osterman (Cloud Posse)
08/05/2026, 3:18 PMErik Osterman (Cloud Posse)
08/05/2026, 3:18 PMNick Dunn
08/05/2026, 3:20 PMErik Osterman (Cloud Posse)
08/05/2026, 5:13 PMErik Osterman (Cloud Posse)
08/05/2026, 5:13 PM--use-version=2874 in your atmos commands.Erik Osterman (Cloud Posse)
08/05/2026, 5:13 PMATMOS_USE_VERSION=2874