From c28690da457208985fa22cd76c48749a3638765f Mon Sep 17 00:00:00 2001 From: Stefano Cattonar Date: Sat, 13 May 2023 00:34:51 +0200 Subject: [PATCH] Fixed a typo in the "Environment Variable Example" because it was generating a parsing error (#20574) Fixed a typo in the "Environment Variable Example" because it was generating a parsing error: template server error: error="(dynamic): execute: template: :2:30: executing \"\" at <.Data.data.payments_api_key>: can't evaluate field data in type *dependency.Secret" --- website/content/docs/platform/k8s/injector/examples.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/docs/platform/k8s/injector/examples.mdx b/website/content/docs/platform/k8s/injector/examples.mdx index 810f444406ed..a6bcfac34757 100644 --- a/website/content/docs/platform/k8s/injector/examples.mdx +++ b/website/content/docs/platform/k8s/injector/examples.mdx @@ -276,7 +276,7 @@ spec: vault.hashicorp.com/agent-inject-secret-config: 'secret/data/web' # Environment variable export template vault.hashicorp.com/agent-inject-template-config: | - {{ with secret "secret/data/web" -}} + {{- with secret "secret/data/web" -}} export api_key="{{ .Data.data.payments_api_key }}" {{- end }} spec: