Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/artifact-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.24.0
version: 1.24.1-0
appVersion: 1.24.0
kubeVersion: ">= 1.19.0-0"
home: https://artifacthub.io
Expand Down
7 changes: 7 additions & 0 deletions charts/artifact-hub/templates/db_migrator_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ kind: Job
metadata:
{{- if .Release.IsInstall }}
name: {{ include "chart.resourceNamePrefix" . }}db-migrator-install
{{- with .Values.dbMigrator.job.extraJobAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- else }}
name: {{ include "chart.resourceNamePrefix" . }}db-migrator-upgrade
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "0"
"helm.sh/hook-delete-policy": before-hook-creation
{{- with .Values.dbMigrator.job.extraJobAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
labels:
{{- include "chart.labels" . | nindent 4 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/artifact-hub/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@
"type": "object",
"default": {}
},
"extraJobAnnotations": {
"title": "Additional annotations for the DB migrator job",
"description": "Optionally specify extra list of additional annotations for the dbMigrator job",
"type": "object",
"default": {}
},
"extraPodLabels": {
"title": "Additional labels for the DB migrator pod",
"description": "Optionally specify extra list of additional labels for the dbMigrator pod",
Expand Down
2 changes: 2 additions & 0 deletions charts/artifact-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ dbMigrator:
repository: artifacthub/db-migrator
# Optionally specify extra list of additional labels for the dbMigrator job
extraJobLabels: {}
# Optionally specify extra list of additional annotations for the dbMigrator job
extraJobAnnotations: {}
# Optionally specify extra list of additional labels for the dbMigrator pod
extraPodLabels: {}
# Limits the lifetime of the job after it has finished execution
Expand Down
Loading