[bitnami/kafka] Allow provisioned topics to define default partitions and replication (#6051)

* settings defaults for partitions and topics for provisioned topics

* fixing readme alignment

* bumping chart version
This commit is contained in:
soudaburger
2021-04-08 17:32:58 +02:00
committed by GitHub
parent f5e59da2aa
commit bc0df93937
4 changed files with 20 additions and 12 deletions
+1 -1
View File
@@ -29,4 +29,4 @@ name: kafka
sources:
- https://github.com/bitnami/bitnami-docker-kafka
- https://kafka.apache.org/
version: 12.16.1
version: 12.16.2
+11 -9
View File
@@ -295,15 +295,17 @@ The following tables lists the configurable parameters of the Kafka chart and th
### Kafka provisioning parameters
| Parameter | Description | Default |
|------------------------------|-----------------------------------------------------------------------|--------------------------------|
| `provisioning.enabled` | Enable kafka provisioning Job | `false` |
| `provisioning.image` | Kafka provisioning Job image | `Check values.yaml file` |
| `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` |
| `provisioning.command` | Override provisioning container command | `[]` (evaluated as a template) |
| `provisioning.args` | Override provisioning container arguments | `[]` (evaluated as a template) |
| Parameter | Description | Default |
|----------------------------------|-----------------------------------------------------------------------|--------------------------------|
| `provisioning.enabled` | Enable kafka provisioning Job | `false` |
| `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.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` |
| `provisioning.command` | Override provisioning container command | `[]` (evaluated as a template) |
| `provisioning.args` | Override provisioning container arguments | `[]` (evaluated as a template) |
### Zookeeper chart parameters
@@ -68,8 +68,8 @@ spec:
--create \
--if-not-exists \
--bootstrap-server {{ $bootstrapServer }} \
--replication-factor {{ $topic.replicationFactor }} \
--partitions {{ $topic.partitions }} \
--replication-factor {{ $topic.replicationFactor | default $.Values.provisioning.replicationFactor }} \
--partitions {{ $topic.partitions | default $.Values.provisioning.numPartitions }} \
{{- range $name, $value := $topic.config }}
--config {{ $name }}={{ $value }} \
{{- end }}
+6
View File
@@ -872,6 +872,12 @@ provisioning:
##
debug: false
# provisioning.numPartitions: Number of partitions for the topic when it does not specify.
numPartitions: 1
# provisioning.replicationFactor: Replication factor for the topic when it does not specify.
replicationFactor: 1
## Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##