Fix k8s injector examples (#8179)

This commit is contained in:
Daniel Spangenberg 2020-01-18 14:47:18 +01:00 committed by GitHub
parent 6b602ea068
commit c64c2bf512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
}