From 7baf2418f7a105ebe234b3f62656b9bcae2f6c4b Mon Sep 17 00:00:00 2001 From: John Children <32305209+johnchildren@users.noreply.github.com> Date: Fri, 21 Apr 2023 18:12:13 +0100 Subject: [PATCH] Docs: Fix k8s injector templating example (#20271) 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 --- website/content/docs/platform/k8s/injector/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/docs/platform/k8s/injector/index.mdx b/website/content/docs/platform/k8s/injector/index.mdx index 1c63a1be2dd1..b50d25b6d2ca 100644 --- a/website/content/docs/platform/k8s/injector/index.mdx +++ b/website/content/docs/platform/k8s/injector/index.mdx @@ -139,7 +139,7 @@ vault.hashicorp.com/agent-inject-template-: | 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