diff options
| author | James Munnelly <james@munnelly.eu> | 2019-04-29 18:09:16 +0100 |
|---|---|---|
| committer | James Munnelly <james@munnelly.eu> | 2019-04-29 18:09:16 +0100 |
| commit | 2c01592255d90e2636b9a5f40cd7e2fbcb0e5529 (patch) | |
| tree | 2bb3bee8630a1656231fe64393e87303ed2914c7 /deploy/example-webhook/templates/_helpers.tpl | |
| parent | 3935fd70e743931e6322bf088cd3e1c866f2e2cd (diff) | |
| download | cert-manager-webhook-hostinger-2c01592255d90e2636b9a5f40cd7e2fbcb0e5529.tar.gz cert-manager-webhook-hostinger-2c01592255d90e2636b9a5f40cd7e2fbcb0e5529.zip | |
Use cert-manager to secure APIService resource
Signed-off-by: James Munnelly <james@munnelly.eu>
Diffstat (limited to 'deploy/example-webhook/templates/_helpers.tpl')
| -rw-r--r-- | deploy/example-webhook/templates/_helpers.tpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy/example-webhook/templates/_helpers.tpl b/deploy/example-webhook/templates/_helpers.tpl index db3c5cd..d3c474b 100644 --- a/deploy/example-webhook/templates/_helpers.tpl +++ b/deploy/example-webhook/templates/_helpers.tpl @@ -30,3 +30,19 @@ Create chart name and version as used by the chart label. {{- define "example-webhook.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} {{- end -}} + +{{- define "example-webhook.selfSignedIssuer" -}} +{{ printf "%s-selfsign" (include "example-webhook.fullname" .) }} +{{- end -}} + +{{- define "example-webhook.rootCAIssuer" -}} +{{ printf "%s-ca" (include "example-webhook.fullname" .) }} +{{- end -}} + +{{- define "example-webhook.rootCACertificate" -}} +{{ printf "%s-ca" (include "example-webhook.fullname" .) }} +{{- end -}} + +{{- define "example-webhook.servingCertificate" -}} +{{ printf "%s-webhook-tls" (include "example-webhook.fullname" .) }} +{{- end -}} |
