Skip to content

Commit d2c2576

Browse files
authored
[bitnami/kafka] adding a way to pass annotations to provisioning Pods (#6585)
1 parent 0a9a0c2 commit d2c2576

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

bitnami/kafka/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ name: kafka
2929
sources:
3030
- https://github.com/bitnami/bitnami-docker-kafka
3131
- https://kafka.apache.org/
32-
version: 12.19.2
32+
version: 12.20.0

bitnami/kafka/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ The following tables lists the configurable parameters of the Kafka chart and th
306306
| `provisioning.image` | Kafka provisioning Job image | `Check values.yaml file` |
307307
| `provisioning.numPartitions` | Default number of partitions for topics when unspecified. | 1 |
308308
| `provisioning.replicationFactor` | Default replication factor for topics when unspecified. | 1 |
309+
| `provisioning.podAnnotations` | Provisioning Pod annotations. | `{}` (evaluated as a template) |
309310
| `provisioning.resources` | Kafka provisioning Job resources | `Check values.yaml file` |
310311
| `provisioning.topics` | Kafka provisioning topics | `[]` |
311312
| `provisioning.schedulerName` | Name of the k8s scheduler (other than default) for kafka provisioning | `nil` |

bitnami/kafka/templates/kafka-provisioning.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ spec:
2323
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
2424
{{- end }}
2525
annotations:
26+
{{- if .Values.provisioning.podAnnotations }}
27+
{{- include "common.tplvalues.render" (dict "value" .Values.provisioning.podAnnotations "context" $) | nindent 8 }}
28+
{{- end }}
2629
spec:
2730
{{- include "kafka.imagePullSecrets" . | nindent 6 }}
2831
{{- if .Values.provisioning.schedulerName }}

bitnami/kafka/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,8 @@ provisioning:
893893
##
894894
# schedulerName:
895895

896+
podAnnotations: {}
897+
896898
resources:
897899
# We usually recommend not to specify default resources and to leave this as a conscious
898900
# choice for the user. This also increases chances charts run on environments with little

0 commit comments

Comments
 (0)