[bitnami/kafka] add topologyKey value (#32792)

* feat(bitnami/kafka): add topologyKey value

Signed-off-by: Simon Ostendorf <github@simon-ostendorf.de>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Simon Ostendorf <github@simon-ostendorf.de>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Simon Ostendorf
2025-04-15 12:20:21 +02:00
committed by GitHub
parent e4fd127429
commit 4ba4ac8fad
6 changed files with 21 additions and 7 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 32.1.3 (2025-04-01)
## 32.2.0 (2025-04-07)
* [bitnami/kafka] bugfix: recompute secret checksum on Kafka kraft secret changes ([#32692](https://github.com/bitnami/charts/pull/32692))
* [bitnami/kafka] add topologyKey value ([#32792](https://github.com/bitnami/charts/pull/32792))
## <small>32.1.3 (2025-04-01)</small>
* [bitnami/kafka] bugfix: recompute secret checksum on Kafka kraft secret changes (#32692) ([773b6c5](https://github.com/bitnami/charts/commit/773b6c541ec64473e68a74996717eb266de41faa)), closes [#32692](https://github.com/bitnami/charts/issues/32692)
## <small>32.1.2 (2025-03-27)</small>

View File

@@ -36,4 +36,4 @@ maintainers:
name: kafka
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kafka
version: 32.1.3
version: 32.2.0

View File

@@ -638,6 +638,7 @@ To back up and restore Helm chart deployments on Kubernetes, you need to back up
| `controller.hostIPC` | Specify if host IPC should be enabled for Kafka pods | `false` |
| `controller.podLabels` | Extra labels for Kafka pods | `{}` |
| `controller.podAnnotations` | Extra annotations for Kafka pods | `{}` |
| `controller.topologyKey` | Override common lib default topology key. If empty - "kubernetes.io/hostname" is used | `""` |
| `controller.podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `controller.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `controller.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
@@ -762,6 +763,7 @@ To back up and restore Helm chart deployments on Kubernetes, you need to back up
| `broker.hostIPC` | Specify if host IPC should be enabled for Kafka pods | `false` |
| `broker.podLabels` | Extra labels for Kafka pods | `{}` |
| `broker.podAnnotations` | Extra annotations for Kafka pods | `{}` |
| `broker.topologyKey` | Override common lib default topology key. If empty - "kubernetes.io/hostname" is used | `""` |
| `broker.podAffinityPreset` | Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |
| `broker.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `soft` |
| `broker.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `affinity` is set. Allowed values: `soft` or `hard` | `""` |

View File

@@ -67,8 +67,8 @@ spec:
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.broker.affinity "context" $) | nindent 8 }}
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.broker.podAffinityPreset "component" "broker" "customLabels" $podLabels "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.broker.podAntiAffinityPreset "component" "broker" "customLabels" $podLabels "context" $) | nindent 10 }}
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.broker.podAffinityPreset "component" "broker" "customLabels" $podLabels "topologyKey" .Values.broker.topologyKey "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.broker.podAntiAffinityPreset "component" "broker" "customLabels" $podLabels "topologyKey" .Values.broker.topologyKey "context" $) | nindent 10 }}
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.broker.nodeAffinityPreset.type "key" .Values.broker.nodeAffinityPreset.key "values" .Values.broker.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
{{- if .Values.broker.nodeSelector }}

View File

@@ -65,8 +65,8 @@ spec:
affinity: {{- include "common.tplvalues.render" (dict "value" .Values.controller.affinity "context" $) | nindent 8 }}
{{- else }}
affinity:
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.controller.podAffinityPreset "component" "controller-eligible" "customLabels" $podLabels "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.controller.podAntiAffinityPreset "component" "controller-eligible" "customLabels" $podLabels "context" $) | nindent 10 }}
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.controller.podAffinityPreset "component" "controller-eligible" "customLabels" $podLabels "topologyKey" .Values.controller.topologyKey "context" $) | nindent 10 }}
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.controller.podAntiAffinityPreset "component" "controller-eligible" "customLabels" $podLabels "topologyKey" .Values.controller.topologyKey "context" $) | nindent 10 }}
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.controller.nodeAffinityPreset.type "key" .Values.controller.nodeAffinityPreset.key "values" .Values.controller.nodeAffinityPreset.values) | nindent 10 }}
{{- end }}
{{- if .Values.controller.nodeSelector }}

View File

@@ -867,6 +867,10 @@ controller:
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}
## @param controller.topologyKey Override common lib default topology key. If empty - "kubernetes.io/hostname" is used
## i.e. topologyKey: topology.kubernetes.io/zone
##
topologyKey: ""
## @param controller.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
##
@@ -1323,6 +1327,10 @@ broker:
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}
## @param broker.topologyKey Override common lib default topology key. If empty - "kubernetes.io/hostname" is used
## i.e. topologyKey: topology.kubernetes.io/zone
##
topologyKey: ""
## @param broker.podAffinityPreset Pod affinity preset. Ignored if `affinity` is set. Allowed values: `soft` or `hard`
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
##