diff --git a/cli/cmd/template_config.go b/cli/cmd/template_config.go index e2744a19c..37fead88d 100644 --- a/cli/cmd/template_config.go +++ b/cli/cmd/template_config.go @@ -56,14 +56,14 @@ This command prints the rendered configuration to stdout so templating can be te Template syntax in config.yaml: # Inject a secret value (defaults to the "content"/"password" field) - someKey: "{{ secret "mySecret" }}" + someKey: '{{ secret "mySecret" }}' # Select a specific field - username: "{{ secret "mySecret" "fields.username" }}" - password: "{{ secret "mySecret" "fields.password" }}" + username: '{{ secret "mySecret" "fields.username" }}' + password: '{{ secret "mySecret" "fields.password" }}' # Inject a file secret's content - caCert: "{{ secret "caCert" "file.content" }}" + caCert: '{{ secret "caCert" "file.content" }}' Secret names and selectors must match entries in the prod.vault.yaml file.`), Example: util.FormatExamples("template config", []io.Example{ diff --git a/docs/oms_template_config.md b/docs/oms_template_config.md index bd734a4bf..8a8967e8e 100644 --- a/docs/oms_template_config.md +++ b/docs/oms_template_config.md @@ -11,14 +11,14 @@ This command prints the rendered configuration to stdout so templating can be te Template syntax in config.yaml: # Inject a secret value (defaults to the "content"/"password" field) - someKey: "{{ secret "mySecret" }}" + someKey: '{{ secret "mySecret" }}' # Select a specific field - username: "{{ secret "mySecret" "fields.username" }}" - password: "{{ secret "mySecret" "fields.password" }}" + username: '{{ secret "mySecret" "fields.username" }}' + password: '{{ secret "mySecret" "fields.password" }}' # Inject a file secret's content - caCert: "{{ secret "caCert" "file.content" }}" + caCert: '{{ secret "caCert" "file.content" }}' Secret names and selectors must match entries in the prod.vault.yaml file.