Skip to content

Commit a054b7b

Browse files
committed
Allow disabling cert-generator with a Helm value
Problem: Need to allow disabling cert-generator with a Helm value. Solution: Allow disabling cert-generator with a Helm value. Testing: Allow disabling cert-generator with a Helm value.
1 parent 5c78a60 commit a054b7b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

charts/nginx-gateway-fabric/templates/certs-job.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.certGenerator.disable }}
12
apiVersion: v1
23
kind: ServiceAccount
34
metadata:
@@ -172,3 +173,4 @@ spec:
172173
{{- toYaml .Values.certGenerator.nodeSelector | nindent 8 }}
173174
{{- end }}
174175
ttlSecondsAfterFinished: {{ .Values.certGenerator.ttlSecondsAfterFinished }}
176+
{{- end }}

charts/nginx-gateway-fabric/values.schema.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
"title": "annotations",
2424
"type": "object"
2525
},
26+
"disable": {
27+
"default": false,
28+
"description": "Disable the cert-generator Job.",
29+
"required": [],
30+
"title": "disable",
31+
"type": "boolean"
32+
},
2633
"nodeSelector": {
2734
"description": "The nodeSelector of the cert-generator pod.",
2835
"required": [],

charts/nginx-gateway-fabric/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ nginx:
659659

660660
# -- The certGenerator section contains the configuration for the cert-generator Job.
661661
certGenerator:
662+
# -- Enable or disable the cert-generator Job.
663+
disable: false
662664
# -- The annotations of the cert-generator Job.
663665
annotations: {}
664666

0 commit comments

Comments
 (0)