Skip to content

Commit ff95876

Browse files
authored
feat: add support for additional env vars (#9)
1 parent c753bd6 commit ff95876

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

charts/alidns-webhook/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
22
appVersion: "0.2.0"
3-
description: Deploys alidns webhook for cert-manager.
3+
description: Deploys alidns webhook for cert-manager.
44
name: alidns-webhook
5-
version: 0.4.0
5+
version: 0.5.0

charts/alidns-webhook/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ spec:
3131
env:
3232
- name: GROUP_NAME
3333
value: {{ .Values.groupName | quote }}
34+
{{- if .Values.env }}
35+
{{- toYaml .Values.extraEnv | nindent 12 }}
36+
{{- end }}
3437
ports:
3538
- name: https
3639
containerPort: {{ .Values.securePort }}

charts/alidns-webhook/templates/pki.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ metadata:
2929
heritage: {{ .Release.Service }}
3030
spec:
3131
secretName: {{ include "alidns-webhook.rootCACertificate" . }}
32-
duration: 43800h # 5y
32+
duration: 43800h0m0s # 5y
3333
issuerRef:
3434
name: {{ include "alidns-webhook.selfSignedIssuer" . }}
3535
commonName: "ca.alidns-webhook.cert-manager"
@@ -67,7 +67,7 @@ metadata:
6767
heritage: {{ .Release.Service }}
6868
spec:
6969
secretName: {{ include "alidns-webhook.servingCertificate" . }}
70-
duration: 8760h # 1y
70+
duration: 8760h0m0s # 1y
7171
issuerRef:
7272
name: {{ include "alidns-webhook.rootCAIssuer" . }}
7373
dnsNames:

charts/alidns-webhook/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,11 @@ nodeSelector: {}
4747
tolerations: []
4848

4949
affinity: {}
50+
51+
52+
# Optional additional envs for the webhook container
53+
extraEnv: []
54+
# - name: ALIDNS_WEBHOOK_ENV_VAR_1
55+
# value: "env_var_1"
56+
# - name: ALIDNS_WEBHOOK_ENV_VAR_2
57+
# value: "env_var_2"

0 commit comments

Comments
 (0)