Skip to content

Commit

Permalink
Docs: Fix k8s injector templating example (#20271)
Browse files Browse the repository at this point in the history
From every other example I can find, the secret name in the template should match the one in the inject annotation. Indeed the same example appears in the examples page.

https://github.com/hashicorp/vault/blob/main/website/content/docs/platform/k8s/injector/examples.mdx#patching-existing-pods
  • Loading branch information
johnchildren committed Apr 21, 2023
1 parent 924129c commit 7baf241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/content/docs/platform/k8s/injector/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ vault.hashicorp.com/agent-inject-template-<unique-name>: |
For example, consider the following:

```yaml
vault.hashicorp.com/agent-inject-secret-foo: 'database/roles/app'
vault.hashicorp.com/agent-inject-secret-foo: 'database/creds/db-app'
vault.hashicorp.com/agent-inject-template-foo: |
{{- with secret "database/creds/db-app" -}}
postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable
Expand Down

0 comments on commit 7baf241

Please sign in to comment.