Skip to content

Commit 7bd7a2e

Browse files
committed
chore(kafka): support protocol config
1 parent 1c6c085 commit 7bd7a2e

3 files changed

Lines changed: 29 additions & 7 deletions

File tree

addons/kafka/3.6/chart/kafka/templates/_helpers.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ Init container definition for waiting for Kubernetes autodiscovery
956956
image: {{ include "kafka.externalAccess.autoDiscovery.image" .context }}
957957
imagePullPolicy: {{ .context.Values.externalAccess.autoDiscovery.image.pullPolicy | quote }}
958958
command:
959+
- init-stack
959960
- /scripts/auto-discovery.sh
960961
env:
961962
- name: MY_POD_NAME

addons/kafka/3.6/chart/kafka/values.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ controller:
644644
drop: ["ALL"]
645645
## @param controller.automountServiceAccountToken Mount Service Account token in pod
646646
##
647-
automountServiceAccountToken: false
647+
automountServiceAccountToken: true
648648
## @param controller.hostAliases Kafka pods host aliases
649649
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
650650
##
@@ -1053,7 +1053,7 @@ broker:
10531053
drop: ["ALL"]
10541054
## @param broker.automountServiceAccountToken Mount Service Account token in pod
10551055
##
1056-
automountServiceAccountToken: false
1056+
automountServiceAccountToken: true
10571057
## @param broker.hostAliases Kafka pods host aliases
10581058
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
10591059
##
@@ -1381,7 +1381,7 @@ externalAccess:
13811381
autoDiscovery:
13821382
## @param externalAccess.autoDiscovery.enabled Enable using an init container to auto-detect external IPs/ports by querying the K8s API
13831383
##
1384-
enabled: false
1384+
enabled: true
13851385
## Bitnami Kubectl image
13861386
## ref: https://hub.docker.com/r/bitnami/kubectl/tags/
13871387
## @param externalAccess.autoDiscovery.image.registry [default: REGISTRY_NAME] Init container auto-discovery image registry
@@ -1728,7 +1728,7 @@ serviceAccount:
17281728
## @param serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
17291729
## Can be set to false if pods using this serviceAccount do not need to use K8s API
17301730
##
1731-
automountServiceAccountToken: false
1731+
automountServiceAccountToken: true
17321732
## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
17331733
##
17341734
annotations: {}
@@ -1740,7 +1740,7 @@ rbac:
17401740
## binding Kafka ServiceAccount to a role
17411741
## that allows Kafka pods querying the K8s API
17421742
##
1743-
create: false
1743+
create: true
17441744

17451745
## @section Metrics parameters
17461746
##
@@ -1920,7 +1920,7 @@ metrics:
19201920
drop: ["ALL"]
19211921
## @param metrics.kafka.automountServiceAccountToken Mount Service Account token in pod
19221922
##
1923-
automountServiceAccountToken: false
1923+
automountServiceAccountToken: true
19241924
## @param metrics.kafka.hostAliases Kafka exporter pods host aliases
19251925
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
19261926
##
@@ -2063,7 +2063,7 @@ metrics:
20632063
## @param metrics.kafka.serviceAccount.automountServiceAccountToken Allows auto mount of ServiceAccountToken on the serviceAccount created
20642064
## Can be set to false if pods using this serviceAccount do not need to use K8s API
20652065
##
2066-
automountServiceAccountToken: false
2066+
automountServiceAccountToken: true
20672067
## Prometheus JMX exporter: exposes the majority of Kafka metrics
20682068
##
20692069
jmx:

addons/kafka/3.6/meta.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ instances_retrievable: true
1515
bindings_retrievable: true
1616
plan_updateable: true
1717
allow_parameters:
18+
- name: "listeners.client.protocol"
19+
required: false
20+
description: "listeners client protocol config for values.yaml"
21+
- name: "listeners.controller.protocol"
22+
required: false
23+
description: "listeners controller protocol config for values.yaml"
24+
- name: "listeners.interbroker.protocol"
25+
required: false
26+
description: "listeners interbroker protocol config for values.yaml"
27+
- name: "listeners.external.protocol"
28+
required: false
29+
description: "listeners external protocol config for values.yaml"
1830
- name: "networkPolicy.allowNamespaces"
1931
required: false
2032
description: "networkPolicy allowNamespaces config for values.yaml"
@@ -24,4 +36,13 @@ allow_parameters:
2436
- name: "metrics.kafka.enabled"
2537
required: false
2638
description: "metrics kafka enabled or not config for values.yaml"
39+
- name: "externalAccess.enabled"
40+
required: false
41+
description: "externalAccess enabled or not config for values.yaml"
42+
- name: "listeners.advertisedListeners"
43+
required: false
44+
description: "listeners advertisedListeners or not config for values.yaml"
45+
- name: "metrics.kafka.enabled"
46+
required: false
47+
description: "metrics kafka enabled or not config for values.yaml"
2748
archive: false

0 commit comments

Comments
 (0)