Skip to content

Commit

Permalink
Merge pull request gianlucam76#139 from aminmr/helm-topologyspread
Browse files Browse the repository at this point in the history
Add topolgySpreadConstraints support to helm
  • Loading branch information
gianlucam76 authored Oct 20, 2024
2 parents 0bed896 + a94cff5 commit adf02d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/k8s-cleaner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ Major Changes to functions are documented with the version affected. **Before up
| serviceMonitor.namespace | string | `""` | Install the ServiceMonitor into a different Namespace, as the monitoring stack one (default: the release one) |
| serviceMonitor.targetLabels | list | `[]` | Set targetLabels for the serviceMonitor |
| tolerations | list | `[]` | Tolerations |
| topologySpreadConstraints | object | `{}` | TopolySpreadConstrains |
| volumes | list | `[]` | Additional volumes on the output Deployment definition. |
4 changes: 4 additions & 0 deletions charts/k8s-cleaner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/k8s-cleaner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ tolerations: []
# -- Affinity
affinity: {}

# -- TopolySpreadConstrains
topologySpreadConstraints: {}

serviceAccount:
# -- Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit adf02d7

Please sign in to comment.