mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-17 17:16:30 +10:00
[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:
@@ -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
@@ -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 }}
|
||||
|
||||
@@ -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/
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user