Skip to content

Commit

Permalink
[bitnami/kafka] adding a way to pass annotations to provisioning Pods (
Browse files Browse the repository at this point in the history
  • Loading branch information
pdemagny committed Jun 8, 2021
1 parent 0a9a0c2 commit d2c2576
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bitnami/kafka/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ name: kafka
sources:
- https://github.com/bitnami/bitnami-docker-kafka
- https://kafka.apache.org/
version: 12.19.2
version: 12.20.0
1 change: 1 addition & 0 deletions bitnami/kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ The following tables lists the configurable parameters of the Kafka chart and th
| `provisioning.image` | Kafka provisioning Job image | `Check values.yaml file` |
| `provisioning.numPartitions` | Default number of partitions for topics when unspecified. | 1 |
| `provisioning.replicationFactor` | Default replication factor for topics when unspecified. | 1 |
| `provisioning.podAnnotations` | Provisioning Pod annotations. | `{}` (evaluated as a template) |
| `provisioning.resources` | Kafka provisioning Job resources | `Check values.yaml file` |
| `provisioning.topics` | Kafka provisioning topics | `[]` |
| `provisioning.schedulerName` | Name of the k8s scheduler (other than default) for kafka provisioning | `nil` |
Expand Down
3 changes: 3 additions & 0 deletions bitnami/kafka/templates/kafka-provisioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
{{- include "common.tplvalues.render" (dict "value" .Values.podLabels "context" $) | nindent 8 }}
{{- end }}
annotations:
{{- if .Values.provisioning.podAnnotations }}
{{- include "common.tplvalues.render" (dict "value" .Values.provisioning.podAnnotations "context" $) | nindent 8 }}
{{- end }}
spec:
{{- include "kafka.imagePullSecrets" . | nindent 6 }}
{{- if .Values.provisioning.schedulerName }}
Expand Down
2 changes: 2 additions & 0 deletions bitnami/kafka/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ provisioning:
##
# schedulerName:

podAnnotations: {}

resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit d2c2576

Please sign in to comment.