[bitnami/kafka] broker pod labels (#18852)

This commit is contained in:
Juan Ariza Toledano
2023-08-25 10:51:25 +02:00
committed by GitHub
parent f9f45bde37
commit 7a2a0dc926
5 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -23,7 +23,7 @@ spec:
{{- if .Values.broker.pdb.maxUnavailable }} {{- if .Values.broker.pdb.maxUnavailable }}
maxUnavailable: {{ .Values.broker.pdb.maxUnavailable }} maxUnavailable: {{ .Values.broker.pdb.maxUnavailable }}
{{- end }} {{- end }}
{{- $podLabels := merge .Values.worker.podLabels .Values.commonLabels }} {{- $podLabels := merge .Values.broker.podLabels .Values.commonLabels }}
selector: selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
app.kubernetes.io/component: broker app.kubernetes.io/component: broker

View File

@@ -19,7 +19,7 @@ metadata:
spec: spec:
podManagementPolicy: {{ .Values.broker.podManagementPolicy }} podManagementPolicy: {{ .Values.broker.podManagementPolicy }}
replicas: {{ .Values.broker.replicaCount }} replicas: {{ .Values.broker.replicaCount }}
{{- $podLabels := merge .Values.worker.podLabels .Values.commonLabels }} {{- $podLabels := merge .Values.broker.podLabels .Values.commonLabels }}
selector: selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }} matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
app.kubernetes.io/component: broker app.kubernetes.io/component: broker

View File

@@ -53,7 +53,7 @@ spec:
{{- if and (eq $.Values.externalAccess.broker.service.type "NodePort") (le (add $i 1) (len $.Values.externalAccess.broker.service.externalIPs)) }} {{- if and (eq $.Values.externalAccess.broker.service.type "NodePort") (le (add $i 1) (len $.Values.externalAccess.broker.service.externalIPs)) }}
externalIPs: [{{ index $.Values.externalAccess.broker.service.externalIPs $i | quote }}] externalIPs: [{{ index $.Values.externalAccess.broker.service.externalIPs $i | quote }}]
{{- end }} {{- end }}
{{- $podLabels := merge $.Values.worker.podLabels $.Values.commonLabels }} {{- $podLabels := merge $.Values.broker.podLabels $.Values.commonLabels }}
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/part-of: kafka app.kubernetes.io/part-of: kafka
app.kubernetes.io/component: broker app.kubernetes.io/component: broker

View File

@@ -31,7 +31,7 @@ spec:
port: {{ .Values.service.ports.client }} port: {{ .Values.service.ports.client }}
protocol: TCP protocol: TCP
targetPort: client targetPort: client
{{- $podLabels := merge .Values.worker.podLabels .Values.commonLabels }} {{- $podLabels := merge .Values.broker.podLabels .Values.commonLabels }}
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }} selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/component: broker app.kubernetes.io/component: broker
app.kubernetes.io/part-of: kafka app.kubernetes.io/part-of: kafka