Use .vault.kv.path

This commit is contained in:
Daniel Berteaud 2024-01-21 23:15:36 +01:00
parent d660f4ad6b
commit 5025eaec42
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ httpConnection:
protocol: [[ $url.Scheme ]]
host: [[ $url.Host ]]
port: [[ $url.Port ]]
apiKey: {{ with secret "[[ .vault.prefix ]]kv/service/democratic-csi" }}{{ .Data.data.truenas_api_key }}{{ end }}
apiKey: {{ with secret "[[ .vault.kv.path ]]" }}{{ .Data.data.truenas_api_key }}{{ end }}
allowInsecure: [[ .democratic_csi.controller.truenas.api.insecure | ternary "true" "false" ]]
apiVersion: 2

View File

@ -7,7 +7,7 @@ httpConnection:
protocol: [[ $url.Scheme ]]
host: [[ $url.Host ]]
port: [[ $url.Port ]]
apiKey: {{ with secret "[[ .vault.prefix ]]kv/service/democratic-csi" }}{{ .Data.data.truenas_api_key }}{{ end }}
apiKey: {{ with secret "[[ .vault.kv.path ]]" }}{{ .Data.data.truenas_api_key }}{{ end }}
allowInsecure: [[ .democratic_csi.controller.truenas.api.insecure | ternary "true" "false" ]]
apiVersion: 2