From 1e767ec1eb66d84c26ca5f71e92406059d433ab7 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Fri, 18 Apr 2025 12:51:18 -0700 Subject: [PATCH] Formatting the secret as JSON --- charts/edh-elo/values.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/charts/edh-elo/values.yaml b/charts/edh-elo/values.yaml index ae95273..f107451 100644 --- a/charts/edh-elo/values.yaml +++ b/charts/edh-elo/values.yaml @@ -39,12 +39,13 @@ serviceAccount: name: "" podAnnotations: vault.hashicorp.com/agent-inject: "true" + vault.hashicorp.com/agent-inject-status: update vault.hashicorp.com/role: "edh-elo" vault.hashicorp.com/agent-inject-secret-google-credentials.json: "edh-elo/data/google-credentials" - # vault.hashicorp.com/agent-inject-template-google-credentials.json: | - # {{- with secret "edh-elo/data/google-credentials" -}} - # {{- .Data | b64enc -}} - # {{- end -}} + vault.hashicorp.com/agent-inject-template-google-credentials.json: | + {{- with secret "edh-elo/data/google-credentials" -}} + {{- .Data.data | toJSON -}} + {{- end -}} podSecurityContext: {} # fsGroup: 2000