Fix service name resolution for OpenBao (release name collision)

When the ArgoCD release name is 'openbao' (same as the subchart name),
Helm's fullname helper collapses '<release>-<chart>' to just the release
name instead of appending '-openbao'. Our ClusterSecretStore and
bootstrap Job hardcoded the '<release>-openbao' form, which pointed at a
non-existent Service and made the ClusterSecretStore fail with
'unable to create client' / DNS lookup errors. Add a helper that
replicates the subchart's fullname logic.

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
2026-09-18 20:06:11 +02:00
co-authored by Copilot
parent 1c2ba585dc
commit d174a0c666
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ spec:
image: {{ .Values.bootstrap.image }}
env:
- name: BAO_ADDR
value: "http://{{ .Release.Name }}-openbao:8200"
value: "http://{{ include "openbao-gitops.openbaoFullname" . }}:8200"
- name: BAO_TOKEN
valueFrom:
secretKeyRef: