From 08e12e5b9f77c997d67f05652c7210822a2b608f Mon Sep 17 00:00:00 2001 From: ihiverlet Date: Fri, 12 Apr 2024 12:47:05 +0000 Subject: [PATCH] clean superset init pods when succeeding --- charts/superset/Chart.yaml | 2 +- charts/superset/values.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/superset/Chart.yaml b/charts/superset/Chart.yaml index 2ceec25..daaa86f 100644 --- a/charts/superset/Chart.yaml +++ b/charts/superset/Chart.yaml @@ -22,7 +22,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.1 +version: 0.1.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/superset/values.yaml b/charts/superset/values.yaml index 7e69d91..be0b45b 100644 --- a/charts/superset/values.yaml +++ b/charts/superset/values.yaml @@ -33,6 +33,9 @@ superset: superset import_datasources -p {{ .Values.extraConfigMountPath }}/import_datasources.yaml fi fi + jobAnnotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-delete-policy": "before-hook-creation, hook-succeeded" configOverrides: secret: |