[bitnami/kafka] Kafka 3 + Chart standardized (#8666)

* [bitnami/kafka] Chart standardized

Signed-off-by: juan131 <juanariza@vmware.com>

* Including missing parameters

Signed-off-by: juan131 <juanariza@vmware.com>

* Update README.md

Signed-off-by: juan131 <juanariza@vmware.com>

* Update deps + requested changes

Signed-off-by: juan131 <juanariza@vmware.com>

* Update README.md notes to reflect change in Kafka version

Signed-off-by: juan131 <juanariza@vmware.com>

* Fix external service names

Signed-off-by: juan131 <juanariza@vmware.com>

* Fix svc external access port

Signed-off-by: juan131 <juanariza@vmware.com>

* [bitnami/kafka] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
Juan Ariza Toledano
2022-01-24 15:04:40 +01:00
committed by GitHub
parent c2de8c8b9a
commit a0732d72b5
34 changed files with 1364 additions and 1115 deletions

View File

@@ -1,49 +0,0 @@
{{- if (include "kafka.createTlsSecret" .) }}
{{- if .Files.Glob "files/tls/*.{crt,pem,jks}" }}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-tls" (include "kafka.fullname" .) }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
type: Opaque
data:
{{- $root := . }}
{{- range $path, $bytes := .Files.Glob "files/tls/*.{crt,pem,jks}" }}
{{ base $path }}: {{ $root.Files.Get $path | b64enc | quote }}
{{- end }}
{{- else if and .Values.auth.tls.autoGenerated (eq .Values.auth.tls.type "pem") }}
{{- $replicaCount := int .Values.replicaCount }}
{{- $releaseNamespace := .Release.Namespace }}
{{- $clusterDomain := .Values.clusterDomain }}
{{- $fullname := include "kafka.fullname" . }}
{{- $ca := genCA "kafka-ca" 365 }}
{{- range $i := until $replicaCount }}
{{- $replicaHost := printf "%s-%d.%s-headless" $fullname $i $fullname }}
{{- $altNames := list (printf "%s.%s.svc.%s" $replicaHost $releaseNamespace $clusterDomain) (printf "%s.%s.svc.%s" $fullname $releaseNamespace $clusterDomain) (printf "%s.%s" $replicaHost $releaseNamespace) (printf "%s.%s" $fullname $releaseNamespace) $replicaHost $fullname }}
{{- $cert := genSignedCert $replicaHost nil $altNames 365 $ca }}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-%d-tls" (include "kafka.fullname" $) $i }}
labels: {{- include "common.labels.standard" $ | nindent 4 }}
{{- if $.Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" $.Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if $.Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" $.Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
type: kubernetes.io/tls
data:
ca.crt: {{ $ca.Cert | b64enc | quote }}
tls.crt: {{ $cert.Cert | b64enc | quote }}
tls.key: {{ $cert.Key | b64enc | quote }}
---
{{- end }}
{{- end }}
{{- end }}