Skip to content

Commit 97ebb04

Browse files
authored
Allow disabling cert-generator with a Helm value (#4186)
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 dd60012 commit 97ebb04

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

charts/nginx-gateway-fabric/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,11 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri
195195
196196
| Key | Description | Type | Default |
197197
|-----|-------------|------|---------|
198-
| `certGenerator` | The certGenerator section contains the configuration for the cert-generator Job. | object | `{"affinity":{},"agentTLSSecretName":"agent-tls","annotations":{},"nodeSelector":{},"overwrite":false,"serverTLSSecretName":"server-tls","tolerations":[],"topologySpreadConstraints":[],"ttlSecondsAfterFinished":30}` |
198+
| `certGenerator` | The certGenerator section contains the configuration for the cert-generator Job. | object | `{"affinity":{},"agentTLSSecretName":"agent-tls","annotations":{},"enable":true,"nodeSelector":{},"overwrite":false,"serverTLSSecretName":"server-tls","tolerations":[],"topologySpreadConstraints":[],"ttlSecondsAfterFinished":30}` |
199199
| `certGenerator.affinity` | The affinity of the cert-generator pod. | object | `{}` |
200200
| `certGenerator.agentTLSSecretName` | The name of the base Secret containing TLS CA, certificate, and key for the NGINX Agent to securely communicate with the NGINX Gateway Fabric control plane. Must exist in the same namespace that the NGINX Gateway Fabric control plane is running in (default namespace: nginx-gateway). | string | `"agent-tls"` |
201201
| `certGenerator.annotations` | The annotations of the cert-generator Job. | object | `{}` |
202+
| `certGenerator.enable` | Enable the cert-generator Job. If this is disabled, then cert-manager or some other method must be used to create the required Secrets. | bool | `true` |
202203
| `certGenerator.nodeSelector` | The nodeSelector of the cert-generator pod. | object | `{}` |
203204
| `certGenerator.overwrite` | Overwrite existing TLS Secrets on startup. | bool | `false` |
204205
| `certGenerator.serverTLSSecretName` | The name of the Secret containing TLS CA, certificate, and key for the NGINX Gateway Fabric control plane to securely communicate with the NGINX Agent. Must exist in the same namespace that the NGINX Gateway Fabric control plane is running in (default namespace: nginx-gateway). | string | `"server-tls"` |

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 .Values.certGenerator.enable }}
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+
"enable": {
27+
"default": true,
28+
"description": "Enable the cert-generator Job. If this is disabled, then cert-manager or some other method must be used to create the required Secrets.",
29+
"required": [],
30+
"title": "enable",
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
@@ -672,6 +672,8 @@ nginx:
672672

673673
# -- The certGenerator section contains the configuration for the cert-generator Job.
674674
certGenerator:
675+
# -- Enable the cert-generator Job. If this is disabled, then cert-manager or some other method must be used to create the required Secrets.
676+
enable: true
675677
# -- The annotations of the cert-generator Job.
676678
annotations: {}
677679

0 commit comments

Comments
 (0)