diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 3a491070b6a8142d6cad32654c6956debb191b92..122afad043a8de38b0d23fa8b532fa6cfacbcb94 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 ca201455680b024132a2abe95df3262ede2583ae..c75a6f5bee29531d6be7e0a5d4f32d04436c5f3f 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