Browse Source

feat(helm): add topologySpreadConstraints to helm chart (#2084)

* feat(helm): add topologySpreadConstraints to helm chart

Fixes #2083

Signed-off-by: jemag <alexandre.bd@tutanota.com>

* fix(helm): generate helm doc properly for topologySpreadConstraints

Signed-off-by: jemag <alexandre.bd@tutanota.com>

---------

Signed-off-by: jemag <alexandre.bd@tutanota.com>
Alexandre Desjardins 3 years ago
parent
commit
aa33521935

+ 1 - 0
deploy/charts/external-secrets/README.md

@@ -129,6 +129,7 @@ The command removes all the Kubernetes components associated with the chart and
 | serviceMonitor.relabelings | list | `[]` | Relabel configs to apply to samples before ingestion. [Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) |
 | serviceMonitor.scrapeTimeout | string | `"25s"` | Timeout if metrics can't be retrieved in given time interval |
 | tolerations | list | `[]` |  |
+| topologySpreadConstraints | list | `[]` |  |
 | webhook.affinity | object | `{}` |  |
 | webhook.certCheckInterval | string | `"5m"` | Specifices the time to check if the cert is valid |
 | webhook.certDir | string | `"/tmp/certs"` |  |

+ 4 - 0
deploy/charts/external-secrets/templates/deployment.yaml

@@ -118,6 +118,10 @@ spec:
       tolerations:
         {{- toYaml . | nindent 8 }}
       {{- end }}
+      {{- with .Values.topologySpreadConstraints }}
+      topologySpreadConstraints:
+        {{- toYaml . | nindent 8 }}
+      {{- end }}
       {{- if .Values.priorityClassName }}
       priorityClassName: {{ .Values.priorityClassName }}
       {{- end }}

+ 2 - 0
deploy/charts/external-secrets/values.yaml

@@ -168,6 +168,8 @@ nodeSelector: {}
 
 tolerations: []
 
+topologySpreadConstraints: []
+
 affinity: {}
 
 # -- Pod priority class name.