| Giorgi Lekveishvili | 84835c9 | 2023-06-20 19:00:15 +0400 | [diff] [blame^] | 1 | {{/* vim: set filetype=mustache: */}} |
| 2 | {{/* |
| 3 | Expand the name of the chart. |
| 4 | */}} |
| 5 | {{- define "cert-manager-webhook-gandi.name" -}} |
| 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} |
| 7 | {{- end -}} |
| 8 | |
| 9 | {{/* |
| 10 | Create a default fully qualified app name. |
| 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
| 12 | If release name contains chart name it will be used as a full name. |
| 13 | */}} |
| 14 | {{- define "cert-manager-webhook-gandi.fullname" -}} |
| 15 | {{- if .Values.fullnameOverride -}} |
| 16 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} |
| 17 | {{- else -}} |
| 18 | {{- $name := default .Chart.Name .Values.nameOverride -}} |
| 19 | {{- if contains $name .Release.Name -}} |
| 20 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} |
| 21 | {{- else -}} |
| 22 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} |
| 23 | {{- end -}} |
| 24 | {{- end -}} |
| 25 | {{- end -}} |
| 26 | |
| 27 | {{/* |
| 28 | Create chart name and version as used by the chart label. |
| 29 | */}} |
| 30 | {{- define "cert-manager-webhook-gandi.chart" -}} |
| 31 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} |
| 32 | {{- end -}} |
| 33 | |
| 34 | {{- define "cert-manager-webhook-gandi.selfSignedIssuer" -}} |
| 35 | {{ printf "%s-selfsign" (include "cert-manager-webhook-gandi.fullname" .) }} |
| 36 | {{- end -}} |
| 37 | |
| 38 | {{- define "cert-manager-webhook-gandi.rootCAIssuer" -}} |
| 39 | {{ printf "%s-ca" (include "cert-manager-webhook-gandi.fullname" .) }} |
| 40 | {{- end -}} |
| 41 | |
| 42 | {{- define "cert-manager-webhook-gandi.rootCACertificate" -}} |
| 43 | {{ printf "%s-ca" (include "cert-manager-webhook-gandi.fullname" .) }} |
| 44 | {{- end -}} |
| 45 | |
| 46 | {{- define "cert-manager-webhook-gandi.servingCertificate" -}} |
| 47 | {{ printf "%s-webhook-tls" (include "cert-manager-webhook-gandi.fullname" .) }} |
| 48 | {{- end -}} |