Skip to content

Commit

Permalink
feat: support rackAwareTopologyLabels field on bk
Browse files Browse the repository at this point in the history
Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh committed Dec 2, 2024
1 parent da726e7 commit c439190
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ spec:
reclaimPolicy: {{ .Values.bookkeeper.volumes.reclaimPolicy | default "Delete" }}
{{- end }}
config:
{{- with .Values.bookkeeper.rackAwareTopologyLabels }}
rackAwareTopologyLabels:
{{- toYaml . | nindent 4 }}
{{- end }}
custom:
{{- with .Values.bookkeeper.custom }}
{{ toYaml . | indent 6 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,10 @@ bookkeeper:
# preferredDuringSchedulingIgnoredDuringExecution - scheduler will try to enforce but not guranentee
type: preferredDuringSchedulingIgnoredDuringExecution
topologySpreadConstraints: []
# For BookKeeperCluster, the field rackAwareTopologyLabels should be configured as nodes topology labels the value of which will be set as the rack name.
# When there are multiple labels configured, all their values will be joined by "/".
# The operator will propagate the label value from nodes to pods and ensure the pod container starts with the label values as environment variables automatically.
rackAwareTopologyLabels: []
labels: {}
annotations: {}
securityContext:
Expand Down

0 comments on commit c439190

Please sign in to comment.