Add cassandra.topologySpreadConstraints (#4689)

Co-authored-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
Jaroslav Živný
2020-12-11 15:20:25 +01:00
committed by GitHub
parent c750ddd205
commit 04426cf64d
5 changed files with 17 additions and 1 deletions

View File

@@ -23,4 +23,4 @@ name: cassandra
sources:
- https://github.com/bitnami/bitnami-docker-cassandra
- http://cassandra.apache.org
version: 7.0.2
version: 7.1.0

View File

@@ -120,6 +120,7 @@ The following table lists the configurable parameters of the Cassandra chart and
| `affinity` | Affinity for pod assignment | `{}` (evaluated as a template) |
| `nodeSelector` | Node labels for pod assignment | `{}` (evaluated as a template) |
| `tolerations` | Tolerations for pod assignment | `[]` (evaluated as a template) |
| `topologySpreadConstraints` | Topology Spread Constraints for pod assignment | `[]` (evaluated as a template) |
| `podSecurityContext.enabled` | Enable security context for Cassandra pods | `true` |
| `podSecurityContext.fsGroup` | Group ID for the volumes of the pod | `1001` |
| `containerSecurityContext.enabled` | Cassandra Container securityContext | `true` |

View File

@@ -61,6 +61,9 @@ spec:
{{- if .Values.podSecurityContext.enabled }}
securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
{{- if or (and .Values.podSecurityContext.enabled .Values.volumePermissions.enabled .Values.persistence.enabled) (.Values.initContainers) }}
initContainers:
{{- if and .Values.podSecurityContext.enabled .Values.volumePermissions.enabled .Values.persistence.enabled }}

View File

@@ -350,6 +350,12 @@ nodeSelector: {}
##
tolerations: []
## Pod topology spread constraints
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
## The value is evaluated as a template
##
topologySpreadConstraints: []
## Pod security context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
##

View File

@@ -350,6 +350,12 @@ nodeSelector: {}
##
tolerations: []
## Pod topology spread constraints
## https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
## The value is evaluated as a template
##
topologySpreadConstraints: []
## Pod security context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
##