Skip to content

Commit

Permalink
feat(helm): introduce extraDeployVerbatim to skip templating engine
Browse files Browse the repository at this point in the history
  • Loading branch information
npdgm committed Dec 19, 2022
1 parent 6c7b28e commit 8b88740
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy/charts/x509-certificate-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ in the container namespace.
| nameOverride | string | `""` | Partially override x509-certificate-exporter.fullname template (will prepend the release name) |
| fullnameOverride | string | `""` | Fully override x509-certificate-exporter.fullname template |
| extraDeploy | list | `[]` | Additional objects to deploy with the release |
| extraDeployVerbatim | list | `[]` | Same as `extraDeploy` but objects won't go through the templating engine |
| imagePullSecrets | list | `[]` | Specify docker-registry secret names as an array |
| image.registry | string | `"docker.io"` | x509-certificate-exporter image registry |
| image.repository | string | `"enix/x509-certificate-exporter"` | x509-certificate-exporter image repository |
Expand Down
8 changes: 8 additions & 0 deletions deploy/charts/x509-certificate-exporter/templates/extra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@
{{- tpl (. | toYaml) $ }}
{{- end }}
{{- end }}
{{- range .Values.extraDeployVerbatim }}
---
{{- if typeIs "string" . }}
{{- . }}
{{- else }}
{{- . | toYaml }}
{{- end }}
{{- end }}
3 changes: 2 additions & 1 deletion deploy/charts/x509-certificate-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

# -- Partially override x509-certificate-exporter.fullname template (will prepend the release name)
nameOverride: ""

# -- Fully override x509-certificate-exporter.fullname template
fullnameOverride: ""

# -- Additional objects to deploy with the release
extraDeploy: []
# -- Same as `extraDeploy` but objects won't go through the templating engine
extraDeployVerbatim: []

# -- Specify docker-registry secret names as an array
imagePullSecrets: []
Expand Down

0 comments on commit 8b88740

Please sign in to comment.