From 3707992b217dbd7f76d0bbbaca4351836991038c Mon Sep 17 00:00:00 2001 From: Daniel Spangenberg Date: Fri, 17 Jan 2020 19:54:36 +0100 Subject: [PATCH] Fix k8s injector examples --- website/pages/docs/platform/k8s/injector/examples.mdx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/website/pages/docs/platform/k8s/injector/examples.mdx b/website/pages/docs/platform/k8s/injector/examples.mdx index bd649f680c1e..7057b5745192 100644 --- a/website/pages/docs/platform/k8s/injector/examples.mdx +++ b/website/pages/docs/platform/k8s/injector/examples.mdx @@ -157,7 +157,7 @@ spec: vault.hashicorp.com/tls-secret: "vault-tls-client" spec: containers: - - name:app + - name: app image: "app:1.0.0" serviceAccountName: app-example --- @@ -165,8 +165,6 @@ apiVersion: v1 kind: ConfigMap metadata: name: my-configmap -agent-config - app: app-example data: config.hcl: | "auto_auth" = { @@ -190,7 +188,7 @@ data: "pid_file" = "/home/vault/.pid" "template" = { - "contents" = "{{- with secret "database/creds/db-app" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}" + "contents" = "{{- with secret \"database/creds/db-app\" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}" "destination" = "/vault/secrets/db-creds" } @@ -222,7 +220,7 @@ data: "pid_file" = "/home/vault/.pid" "template" = { - "contents" = "{{- with secret "database/creds/db-app" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}" + "contents" = "{{- with secret \"database/creds/db-app\" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}" "destination" = "/vault/secrets/db-creds" }