Skip to content

Commit

Permalink
chore: add name and instance labels to kafka and pulsar
Browse files Browse the repository at this point in the history
  • Loading branch information
free6om committed Nov 10, 2023
1 parent 9f92db2 commit 66320fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions addons/kafka/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ Common labels
*/}}
{{- define "kafka.labels" -}}
helm.sh/chart: {{ include "kafka.chart" . }}
{{ include "kafka.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "kafka.selectorLabels" -}}
app.kubernetes.io/name: {{ include "kafka.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
9 changes: 9 additions & 0 deletions addons/pulsar/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,21 @@ Common labels
*/}}
{{- define "pulsar.labels" -}}
helm.sh/chart: {{ include "pulsar.chart" . }}
{{ include "pulsar.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "pulsar.selectorLabels" -}}
app.kubernetes.io/name: {{ include "pulsar.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create full image name
*/}}
Expand Down

0 comments on commit 66320fe

Please sign in to comment.