feat: add useHelmHooks value to allow install with --wait (#23460)

Signed-off-by: Wout Van De Wiel <vandewiel.wout@gmail.com>
This commit is contained in:
Wout Van De Wiel
2024-02-15 14:27:34 +01:00
committed by GitHub
parent 08ae391141
commit a5b06d4424
4 changed files with 6 additions and 1 deletions

View File

@@ -42,4 +42,4 @@ maintainers:
name: kafka
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kafka
version: 26.8.5
version: 26.9.0

View File

@@ -685,6 +685,7 @@ The command removes all the Kubernetes components associated with the chart and
| `provisioning.sidecars` | Add additional sidecar containers to the Kafka provisioning pod(s) | `[]` |
| `provisioning.initContainers` | Add additional Add init containers to the Kafka provisioning pod(s) | `[]` |
| `provisioning.waitForKafka` | If true use an init container to wait until kafka is ready before starting provisioning | `true` |
| `provisioning.useHelmHooks` | Flag to indicate usage of helm hooks | `true` |
### KRaft chart parameters

View File

@@ -12,8 +12,10 @@ metadata:
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: kafka-provisioning
annotations:
{{- if .Values.provisioning.useHelmHooks }}
helm.sh/hook: post-install,post-upgrade
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}

View File

@@ -2485,6 +2485,8 @@ provisioning:
## @param provisioning.waitForKafka If true use an init container to wait until kafka is ready before starting provisioning
##
waitForKafka: true
## @param provisioning.useHelmHooks Flag to indicate usage of helm hooks
useHelmHooks: true
## @section KRaft chart parameters