diff --git a/src/chartmuseum/Chart.yaml b/src/chartmuseum/Chart.yaml index 87f2ae7..fe6770e 100644 --- a/src/chartmuseum/Chart.yaml +++ b/src/chartmuseum/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Host your own Helm Chart Repository name: chartmuseum -version: 3.9.1 +version: 3.9.2 appVersion: 0.15.0 home: https://github.com/helm/chartmuseum icon: https://raw.githubusercontent.com/chartmuseum/charts/main/logo.jpg diff --git a/src/chartmuseum/templates/_helpers.tpl b/src/chartmuseum/templates/_helpers.tpl index c5a65d4..82a48ae 100644 --- a/src/chartmuseum/templates/_helpers.tpl +++ b/src/chartmuseum/templates/_helpers.tpl @@ -45,6 +45,9 @@ helm.sh/chart: {{ include "chartmuseum.chart" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} +{{- if .Values.commonLabels}} +{{ toYaml .Values.commonLabels }} +{{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} diff --git a/src/chartmuseum/templates/pv.yaml b/src/chartmuseum/templates/pv.yaml index 3575a59..a86e247 100644 --- a/src/chartmuseum/templates/pv.yaml +++ b/src/chartmuseum/templates/pv.yaml @@ -4,6 +4,7 @@ kind: PersistentVolume metadata: name: {{ .Values.persistence.pv.pvname | default (include "chartmuseum.fullname" .) }} labels: + {{- include "chartmuseum.labels" . | nindent 4 }} {{- include "chartmuseum.selectorLabels" . | nindent 4 }} spec: capacity: diff --git a/src/chartmuseum/templates/pvc.yaml b/src/chartmuseum/templates/pvc.yaml index a6c424a..9a14403 100644 --- a/src/chartmuseum/templates/pvc.yaml +++ b/src/chartmuseum/templates/pvc.yaml @@ -4,6 +4,7 @@ apiVersion: v1 metadata: name: {{ include "chartmuseum.fullname" . }} labels: + {{- include "chartmuseum.labels" . | nindent 4 }} {{- include "chartmuseum.selectorLabels" . | nindent 4 }} {{- with .Values.persistence.labels }} {{- toYaml . | nindent 4 }} diff --git a/src/chartmuseum/values.yaml b/src/chartmuseum/values.yaml index e6fd0ec..ad4ffab 100644 --- a/src/chartmuseum/values.yaml +++ b/src/chartmuseum/values.yaml @@ -9,6 +9,10 @@ image: pullPolicy: IfNotPresent secret: labels: {} +## Labels to apply to all resources +## +commonLabels: {} +# team_name: dev env: open: # storage backend, can be one of: local, alibaba, amazon, google, microsoft, oracle