Skip to content

Commit

Permalink
Fixed a typo in the "Environment Variable Example" because it was gen…
Browse files Browse the repository at this point in the history
…erating a parsing error (hashicorp#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"
  • Loading branch information
CesarStef committed May 12, 2023
1 parent 1d5325f commit c28690d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/content/docs/platform/k8s/injector/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c28690d

Please sign in to comment.