Skip to content

feat(terraform-vault): let the kubeconfig path be given instead of derived - #177

Merged
patrick-hermann-sva merged 1 commit into
mainfrom
feat/terraform-vault-kubeconfig-input
Sep 9, 2026
Merged

feat(terraform-vault): let the kubeconfig path be given instead of derived#177
patrick-hermann-sva merged 1 commit into
mainfrom
feat/terraform-vault-kubeconfig-input

Conversation

@patrick-hermann-sva

Copy link
Copy Markdown
Contributor

cluster-name has been doing two jobs: naming the cluster to terraform, and locating its kubeconfig.

KUBE_CONFIG_ENC: secrets/kubeconfigs/${{ inputs.cluster-name }}.yaml

Those two disagree in practice, because kubeconfigs are named inconsistently:

philly.yaml                        cicd-crossplane.yaml          ← no lab
labda-cicd-machinery-test5.yaml    labda-sthings-infra.yaml      ← lab prefix

A caller whose file is prefixed had to pass the prefixed name — and then got that prefix into every Vault object the terraform config names. Concretely: cicd-machinery-test5 already has an ESO mount cicd-machinery-test5 and a k8s-auth mount cicd-machinery-test5-eso, but its kubeconfig is labda-cicd-machinery-test5.yaml. There was no value of cluster-name that produced both.

kubeconfig-file defaults to empty and derives the old path, so nothing existing changes. Same guard shape as #175, for the same reason: workflow_dispatch does not define the input, so a dispatched run reads it as empty and must fall back.

🤖 Generated with Claude Code

https://claude.ai/code/session_01K2rfvVDXWjWZAKMcpwvgLG

…rived

cluster-name has been doing two jobs: naming the cluster to terraform, and
locating its kubeconfig via

  KUBE_CONFIG_ENC: secrets/kubeconfigs/${{ inputs.cluster-name }}.yaml

Those disagree in practice, because kubeconfigs are named inconsistently --
philly.yaml and cicd-crossplane.yaml carry no lab, labda-cicd-machinery-test5
and labda-sthings-infra do. A caller whose file is prefixed had to pass the
prefixed name, and then got that prefix into every Vault object the terraform
config names.

Concretely: cicd-machinery-test5 already has an ESO mount
`cicd-machinery-test5` and a k8s-auth mount `cicd-machinery-test5-eso`, but its
kubeconfig is labda-cicd-machinery-test5.yaml. No value of cluster-name
produced both.

kubeconfig-file defaults to empty and derives the old path, so nothing existing
changes. Same guard shape as #175 and for the same reason: workflow_dispatch
does not define the input, so a dispatched run reads it as empty and must fall
back.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K2rfvVDXWjWZAKMcpwvgLG
@patrick-hermann-sva
patrick-hermann-sva force-pushed the feat/terraform-vault-kubeconfig-input branch from d8366f2 to f4b5751 Compare September 9, 2026 12:30
@patrick-hermann-sva
patrick-hermann-sva merged commit 0d4c5b0 into main Sep 9, 2026
1 check passed
@patrick-hermann-sva
patrick-hermann-sva deleted the feat/terraform-vault-kubeconfig-input branch September 9, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant