This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git
The following commit(s) were added to refs/heads/master by this push:
new adbc6b7 Add custom labels to all k8s objects in chart (#201)
adbc6b7 is described below
commit adbc6b7fcfd669d778c121f608a2e4396acde541
Author: cogito-kyle <[email protected]>
AuthorDate: Tue Jan 18 01:47:49 2022 -0500
Add custom labels to all k8s objects in chart (#201)
---
charts/pulsar/Chart.yaml | 2 +-
charts/pulsar/templates/_helpers.tpl | 6 ++++++
charts/pulsar/values.yaml | 5 +++++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/charts/pulsar/Chart.yaml b/charts/pulsar/Chart.yaml
index 04e0868..3813fc3 100644
--- a/charts/pulsar/Chart.yaml
+++ b/charts/pulsar/Chart.yaml
@@ -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
diff --git a/charts/pulsar/templates/_helpers.tpl
b/charts/pulsar/templates/_helpers.tpl
index 0ad71f9..c1206c2 100644
--- a/charts/pulsar/templates/_helpers.tpl
+++ b/charts/pulsar/templates/_helpers.tpl
@@ -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 }}
{{/*
@@ -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 }}
{{/*
diff --git a/charts/pulsar/values.yaml b/charts/pulsar/values.yaml
index 8e3cbdf..a449d95 100644
--- a/charts/pulsar/values.yaml
+++ b/charts/pulsar/values.yaml
@@ -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.