mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
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"
This commit is contained in:
parent
1d5325f255
commit
c28690da45
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue