Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
deansheather authored Feb 3, 2023
commit dad39d3fafd54baf683f4714cf1fe1cf4347d7f4
6 changes: 3 additions & 3 deletions helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ Deprecated value coder.tls.secretName must not be used.
{{- end }}

{{/*
Renders a value that contains template.
Renders a value that contains a template.
Usage:
{{ include "common.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }}
{{ include "coder.renderTemplate" ( dict "value" .Values.path.to.the.Value "context" $) }}
*/}}
{{- define "common.tplvalues.render" -}}
{{- define "coder.renderTemplate" -}}
{{- if typeIs "string" .value }}
{{- tpl .value .context }}
{{- else }}
Expand Down
4 changes: 2 additions & 2 deletions helm/templates/extra-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- range .Values.extraDeploy }}
{{- range .Values.extraTemplates }}
---
{{ include "common.tplvalues.render" (dict "value" . "context" $) }}
{{ include "coder.renderTemplate" (dict "value" . "context" $) }}
{{- end }}
8 changes: 5 additions & 3 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,14 @@ coder:
# use for the wildcard host.
wildcardSecretName: ""

# extraDeploy -- Array of extra objects to deploy with the release (evaluated as a template)
extraDeploy:
# extraTemplates -- Array of extra objects to deploy with the release. These
# are evaluated as a template and can use template expansions and functions.
# Strings are used as is, and all other objects are used as yaml.
extraTemplates:
[]
# - apiVersion: v1
# kind: ConfigMap
# metadata:
# name: my-configmap
# data:
# key: value
# key: {{ .Values.myCustomvalue | quote }}