Skip to content

Increase Timeout to Ensure ArgoCD Successfully Verifies Job Completion #3497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion charts/nginx-gateway-fabric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,16 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri

| Key | Description | Type | Default |
|-----|-------------|------|---------|
| `certGenerator` | The certGenerator section contains the configuration for the cert-generator Job. | object | `{"agentTLSSecretName":"agent-tls","annotations":{},"overwrite":false,"serverTLSSecretName":"server-tls"}` |
| `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}` |
| `certGenerator.affinity` | The affinity of the cert-generator pod. | object | `{}` |
| `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"` |
| `certGenerator.annotations` | The annotations of the cert-generator Job. | object | `{}` |
| `certGenerator.nodeSelector` | The nodeSelector of the cert-generator pod. | object | `{}` |
| `certGenerator.overwrite` | Overwrite existing TLS Secrets on startup. | bool | `false` |
| `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"` |
| `certGenerator.tolerations` | Tolerations for the cert-generator pod. | list | `[]` |
| `certGenerator.topologySpreadConstraints` | The topology spread constraints for the cert-generator pod. | list | `[]` |
| `certGenerator.ttlSecondsAfterFinished` | How long to wait after the cert generator job has finished before it is removed by the job controller. | int | `30` |
| `clusterDomain` | The DNS cluster domain of your Kubernetes cluster. | string | `"cluster.local"` |
| `gateways` | A list of Gateway objects. View https://gateway-api.sigs.k8s.io/reference/spec/#gateway for full Gateway reference. | list | `[]` |
| `nginx` | The nginx section contains the configuration for all NGINX data plane deployments installed by the NGINX Gateway Fabric control plane. | object | `{"config":{},"container":{},"debug":false,"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/nginx/nginx-gateway-fabric/nginx","tag":"2.0.0"},"imagePullSecret":"","imagePullSecrets":[],"kind":"deployment","plus":false,"pod":{},"replicas":1,"service":{"externalTrafficPolicy":"Local","loadBalancerClass":"","loadBalancerIP":"","loadBalancerSourceRanges":[],"nodePorts":[],"type":"LoadBalancer"},"usage":{"caSecretName":"","clientSSLSecretName":"","endpoint":"","resolver":"","secretName":"nplus-license","skipVerify":false}}` |
Expand Down
18 changes: 17 additions & 1 deletion charts/nginx-gateway-fabric/templates/certs-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,20 @@ spec:
securityContext:
fsGroup: 1001
runAsNonRoot: true
ttlSecondsAfterFinished: 0
{{- if .Values.certGenerator.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml .Values.certGenerator.topologySpreadConstraints | nindent 6 }}
{{- end }}
{{- if .Values.certGenerator.affinity }}
affinity:
{{- toYaml .Values.certGenerator.affinity | nindent 8 }}
{{- end }}
{{- if .Values.certGenerator.tolerations }}
tolerations:
{{- toYaml .Values.certGenerator.tolerations | nindent 6 }}
{{- end }}
{{- if .Values.certGenerator.nodeSelector }}
nodeSelector:
{{- toYaml .Values.certGenerator.nodeSelector | nindent 8 }}
{{- end }}
ttlSecondsAfterFinished: {{ .Values.certGenerator.ttlSecondsAfterFinished }}
37 changes: 37 additions & 0 deletions charts/nginx-gateway-fabric/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
"certGenerator": {
"description": "The certGenerator section contains the configuration for the cert-generator Job.",
"properties": {
"affinity": {
"description": "The affinity of the cert-generator pod.",
"required": [],
"title": "affinity",
"type": "object"
},
"agentTLSSecretName": {
"default": "agent-tls",
"description": "The name of the base Secret containing TLS CA, certificate, and key for the NGINX Agent to securely\ncommunicate with the NGINX Gateway Fabric control plane. Must exist in the same namespace that the\nNGINX Gateway Fabric control plane is running in (default namespace: nginx-gateway).",
Expand All @@ -17,6 +23,12 @@
"title": "annotations",
"type": "object"
},
"nodeSelector": {
"description": "The nodeSelector of the cert-generator pod.",
"required": [],
"title": "nodeSelector",
"type": "object"
},
"overwrite": {
"default": false,
"description": "Overwrite existing TLS Secrets on startup.",
Expand All @@ -30,6 +42,31 @@
"required": [],
"title": "serverTLSSecretName",
"type": "string"
},
"tolerations": {
"description": "Tolerations for the cert-generator pod.",
"items": {
"required": []
},
"required": [],
"title": "tolerations",
"type": "array"
},
"topologySpreadConstraints": {
"description": "The topology spread constraints for the cert-generator pod.",
"items": {
"required": []
},
"required": [],
"title": "topologySpreadConstraints",
"type": "array"
},
"ttlSecondsAfterFinished": {
"default": 30,
"description": "How long to wait after the cert generator job has finished before it is removed by the job controller.",
"required": [],
"title": "ttlSecondsAfterFinished",
"type": "integer"
}
},
"required": [],
Expand Down
15 changes: 15 additions & 0 deletions charts/nginx-gateway-fabric/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,21 @@ certGenerator:
# -- Overwrite existing TLS Secrets on startup.
overwrite: false

# -- How long to wait after the cert generator job has finished before it is removed by the job controller.
ttlSecondsAfterFinished: 30

# -- Tolerations for the cert-generator pod.
tolerations: []

# -- The nodeSelector of the cert-generator pod.
nodeSelector: {}

# -- The affinity of the cert-generator pod.
affinity: {}

# -- The topology spread constraints for the cert-generator pod.
topologySpreadConstraints: []

# -- A list of Gateway objects. View https://gateway-api.sigs.k8s.io/reference/spec/#gateway for full Gateway reference.
gateways: []

Expand Down
2 changes: 1 addition & 1 deletion deploy/azure/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/default/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/experimental-nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/experimental/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/nodeport/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/openshift/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/snippets-filters-nginx-plus/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
2 changes: 1 addition & 1 deletion deploy/snippets-filters/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ spec:
fsGroup: 1001
runAsNonRoot: true
serviceAccountName: nginx-gateway-cert-generator
ttlSecondsAfterFinished: 0
ttlSecondsAfterFinished: 30
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand Down
Loading