diff --git a/charts/artifact-hub/Chart.yaml b/charts/artifact-hub/Chart.yaml index a9ff0b95e..f2b0b54c1 100644 --- a/charts/artifact-hub/Chart.yaml +++ b/charts/artifact-hub/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: artifact-hub description: Artifact Hub is a web-based application that enables finding, installing, and publishing Cloud Native packages. type: application -version: 1.19.0 +version: 1.19.1-0 appVersion: 1.19.0 kubeVersion: ">= 1.19.0-0" home: https://artifacthub.io diff --git a/charts/artifact-hub/templates/db_migrator_job.yaml b/charts/artifact-hub/templates/db_migrator_job.yaml index 7fa9c60cd..dc0f6aa03 100644 --- a/charts/artifact-hub/templates/db_migrator_job.yaml +++ b/charts/artifact-hub/templates/db_migrator_job.yaml @@ -10,16 +10,18 @@ metadata: "helm.sh/hook-weight": "0" "helm.sh/hook-delete-policy": before-hook-creation {{- end }} -{{- with .Values.dbMigrator.job.extraJobLabels }} labels: + {{- include "chart.labels" . | nindent 4 }} +{{- with .Values.dbMigrator.job.extraJobLabels }} {{- toYaml . | nindent 4 }} {{- end }} spec: ttlSecondsAfterFinished: {{ .Values.dbMigrator.job.ttlSecondsAfterFinished }} template: - {{- with .Values.dbMigrator.job.extraPodLabels }} metadata: labels: + {{- include "chart.labels" . | nindent 8 }} + {{- with .Values.dbMigrator.job.extraPodLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: diff --git a/charts/artifact-hub/templates/db_migrator_secret.yaml b/charts/artifact-hub/templates/db_migrator_secret.yaml index dd17009d1..d134298ef 100644 --- a/charts/artifact-hub/templates/db_migrator_secret.yaml +++ b/charts/artifact-hub/templates/db_migrator_secret.yaml @@ -2,6 +2,8 @@ apiVersion: v1 kind: Secret metadata: name: {{ include "chart.resourceNamePrefix" . }}db-migrator-config + labels: + {{- include "chart.labels" . | nindent 4 }} type: Opaque stringData: tern.conf: |- diff --git a/charts/artifact-hub/templates/hub_rbac.yaml b/charts/artifact-hub/templates/hub_rbac.yaml index 79f43cd1a..bfd8e656c 100644 --- a/charts/artifact-hub/templates/hub_rbac.yaml +++ b/charts/artifact-hub/templates/hub_rbac.yaml @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "chart.resourceNamePrefix" . }}job-reader + labels: + {{- include "chart.labels" . | nindent 4 }} rules: - apiGroups: ["batch"] resources: ["jobs"] @@ -12,6 +14,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "chart.resourceNamePrefix" . }}hub-job-reader + labels: + {{- include "chart.labels" . | nindent 4 }} subjects: - kind: ServiceAccount name: {{ include "chart.resourceNamePrefix" . }}hub diff --git a/charts/artifact-hub/templates/hub_secret.yaml b/charts/artifact-hub/templates/hub_secret.yaml index d78f76e12..7862f5139 100644 --- a/charts/artifact-hub/templates/hub_secret.yaml +++ b/charts/artifact-hub/templates/hub_secret.yaml @@ -2,6 +2,8 @@ apiVersion: v1 kind: Secret metadata: name: {{ include "chart.resourceNamePrefix" . }}hub-config + labels: + {{- include "chart.labels" . | nindent 4 }} type: Opaque stringData: hub.yaml: |- diff --git a/charts/artifact-hub/templates/hub_serviceaccount.yaml b/charts/artifact-hub/templates/hub_serviceaccount.yaml index d4d46db39..5bf63725f 100644 --- a/charts/artifact-hub/templates/hub_serviceaccount.yaml +++ b/charts/artifact-hub/templates/hub_serviceaccount.yaml @@ -3,5 +3,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "chart.serviceAccountName" . }} + labels: + {{- include "chart.labels" . | nindent 4 }} automountServiceAccountToken: {{ .Values.hub.serviceAccount.automountServiceAccountToken }} {{- end }} diff --git a/charts/artifact-hub/templates/scanner_cronjob.yaml b/charts/artifact-hub/templates/scanner_cronjob.yaml index ee123358f..e9118111f 100644 --- a/charts/artifact-hub/templates/scanner_cronjob.yaml +++ b/charts/artifact-hub/templates/scanner_cronjob.yaml @@ -7,8 +7,9 @@ apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ include "chart.resourceNamePrefix" . }}scanner - {{- with .Values.scanner.cronjob.extraCronJobLabels }} labels: + {{- include "chart.labels" . | nindent 4 }} + {{- with .Values.scanner.cronjob.extraCronJobLabels }} {{- toYaml . | nindent 4 }} {{- end }} spec: @@ -19,9 +20,10 @@ spec: jobTemplate: spec: template: - {{- with .Values.scanner.cronjob.extraJobLabels }} metadata: labels: + {{- include "chart.labels" . | nindent 12 }} + {{- with .Values.scanner.cronjob.extraJobLabels }} {{- toYaml . | nindent 12 }} {{- end }} spec: diff --git a/charts/artifact-hub/templates/scanner_secret.yaml b/charts/artifact-hub/templates/scanner_secret.yaml index 482e73549..5b3003e07 100644 --- a/charts/artifact-hub/templates/scanner_secret.yaml +++ b/charts/artifact-hub/templates/scanner_secret.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: Secret metadata: name: {{ include "chart.resourceNamePrefix" . }}scanner-config + labels: + {{- include "chart.labels" . | nindent 4 }} type: Opaque stringData: scanner.yaml: |- diff --git a/charts/artifact-hub/templates/tracker_cronjob.yaml b/charts/artifact-hub/templates/tracker_cronjob.yaml index 208782310..7a27c7182 100644 --- a/charts/artifact-hub/templates/tracker_cronjob.yaml +++ b/charts/artifact-hub/templates/tracker_cronjob.yaml @@ -6,8 +6,9 @@ apiVersion: batch/v1beta1 kind: CronJob metadata: name: {{ include "chart.resourceNamePrefix" . }}tracker - {{- with .Values.tracker.cronjob.extraCronJobLabels }} labels: + {{- include "chart.labels" . | nindent 4 }} + {{- with .Values.tracker.cronjob.extraCronJobLabels }} {{- toYaml . | nindent 4 }} {{- end }} spec: @@ -18,9 +19,10 @@ spec: jobTemplate: spec: template: - {{- with .Values.tracker.cronjob.extraJobLabels }} metadata: labels: + {{- include "chart.labels" . | nindent 12 }} + {{- with .Values.tracker.cronjob.extraJobLabels }} {{- toYaml . | nindent 12 }} {{- end }} spec: diff --git a/charts/artifact-hub/templates/tracker_secret.yaml b/charts/artifact-hub/templates/tracker_secret.yaml index 463f80170..e66cc81af 100644 --- a/charts/artifact-hub/templates/tracker_secret.yaml +++ b/charts/artifact-hub/templates/tracker_secret.yaml @@ -2,6 +2,8 @@ apiVersion: v1 kind: Secret metadata: name: {{ include "chart.resourceNamePrefix" . }}tracker-config + labels: + {{- include "chart.labels" . | nindent 4 }} type: Opaque stringData: tracker.yaml: |- diff --git a/charts/artifact-hub/templates/trivy_pvc.yaml b/charts/artifact-hub/templates/trivy_pvc.yaml index 69505f41e..256d6d962 100644 --- a/charts/artifact-hub/templates/trivy_pvc.yaml +++ b/charts/artifact-hub/templates/trivy_pvc.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ include "chart.resourceNamePrefix" . }}trivy + labels: + {{- include "chart.labels" . | nindent 4 }} spec: accessModes: - ReadWriteOnce