Skip to content
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

Feature/topology spread constraints #2703

Merged
merged 9 commits into from
Oct 23, 2024
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