From 29e034c10a80c9d752134b8e93b9db365fac1ba5 Mon Sep 17 00:00:00 2001 From: shucheng Date: Sun, 24 Jan 2021 00:37:36 +0800 Subject: [PATCH] app.bd-apaas.com/cluster-component: registry --- templates/_helpers.tpl | 3 +++ values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 3a49107..122afad 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -22,6 +22,9 @@ heritage: {{ .Release.Service }} release: {{ .Release.Name }} chart: {{ .Chart.Name }} app: "{{ template "harbor.name" . }}" +{{- if .Values.commonLabels}} +{{ toYaml .Values.commonLabels }} +{{- end }} {{- end -}} {{/* matchLabels */}} diff --git a/values.yaml b/values.yaml index ca20145..c75a6f5 100644 --- a/values.yaml +++ b/values.yaml @@ -741,3 +741,6 @@ redis: password: "" ## Additional deployment annotations podAnnotations: {} + +commonLabels: + app.bd-apaas.com/cluster-component: registry \ No newline at end of file -- 2.26.0