Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cli/cmd/template_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
8 changes: 4 additions & 4 deletions docs/oms_template_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading