Skip to content
1 change: 1 addition & 0 deletions charts/nginx-gateway-fabric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ The following table lists the configurable parameters of the NGINX Gateway Fabri
| `serviceAccount.name` | The name of the service account of the NGINX Gateway Fabric pods. Used for RBAC. | string | Autogenerated if not set or set to "" |
| `terminationGracePeriodSeconds` | The termination grace period of the NGINX Gateway Fabric pod. | int | `30` |
| `tolerations` | Tolerations for the NGINX Gateway Fabric pod. | list | `[]` |
| `topologySpreadConstraints` | The topology spread constraints for the NGINX Gateway Fabric pod. | list | `[]` |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs)
4 changes: 4 additions & 0 deletions charts/nginx-gateway-fabric/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml .Values.topologySpreadConstraints | nindent 8 }}
{{- end }}
initContainers:
- name: copy-nginx-config
image: {{ .Values.nginxGateway.image.repository }}:{{ default .Chart.AppVersion .Values.nginxGateway.image.tag }}
Expand Down
9 changes: 9 additions & 0 deletions charts/nginx-gateway-fabric/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,15 @@
"required": [],
"title": "tolerations",
"type": "array"
},
"topologySpreadConstraints": {
"description": "The topology spread constraints for the NGINX Gateway Fabric pod.",
"items": {
"required": []
},
"required": [],
"title": "topologySpreadConstraints",
"type": "array"
}
},
"required": [],
Expand Down
3 changes: 3 additions & 0 deletions charts/nginx-gateway-fabric/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ nodeSelector: {}
# -- The affinity of the NGINX Gateway Fabric pod.
affinity: {}

# -- The topology spread constraints for the NGINX Gateway Fabric pod.
topologySpreadConstraints: []

serviceAccount:
# -- Set of custom annotations for the NGINX Gateway Fabric service account.
annotations: {}
Expand Down
Loading