Skip to content

Commit

Permalink
Add custom labels to all k8s objects in chart (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
cogito-kyle authored Jan 18, 2022
1 parent 7219a37 commit adbc6b7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/pulsar/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ apiVersion: v2
appVersion: "2.7.4"
description: Apache Pulsar Helm chart for Kubernetes
name: pulsar
version: 2.7.9
version: 2.7.10
home: https://pulsar.apache.org
sources:
- https://github.com/apache/pulsar
Expand Down
6 changes: 6 additions & 0 deletions charts/pulsar/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ chart: {{ template "pulsar.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
cluster: {{ template "pulsar.cluster.name" . }}
{{- if .Values.labels }}
{{ .Values.labels | toYaml | trim }}
{{- end }}
{{- end }}
{{/*
Expand All @@ -75,6 +78,9 @@ Create the template labels.
app: {{ template "pulsar.name" . }}
release: {{ .Release.Name }}
cluster: {{ template "pulsar.cluster.name" . }}
{{- if .Values.labels }}
{{ .Values.labels | toYaml | trim }}
{{- end }}
{{- end }}
{{/*
Expand Down
5 changes: 5 additions & 0 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ initialize: false
## Set cluster name
# clusterName:

## add custom labels to components of cluster
# labels:
# environment: dev
# customer: apache

## Pulsar Metadata Prefix
##
## By default, pulsar stores all the metadata at root path.
Expand Down

0 comments on commit adbc6b7

Please sign in to comment.