Update helm hook conditionals

Updated the db job annotation hooks to be wrapped with
conditionals for helm v2 support.

Change-Id: I069fe3572b837714e263252646e56471c81745d5
This commit is contained in:
Gage Hugo 2021-04-23 17:03:11 -05:00
parent 16098031c5
commit a3d26068ad
4 changed files with 6 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Keystone
name: keystone
version: 0.1.13
version: 0.1.14
home: https://docs.openstack.org/keystone/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Keystone/OpenStack_Project_Keystone_vertical.png
sources:

View File

@ -13,8 +13,10 @@ limitations under the License.
*/}}
{{- define "metadata.annotations.job.db_init" }}
{{- if .Values.helm3_hook -}}
helm.sh/hook: post-install,post-upgrade
helm.sh/hook-weight: "-5"
{{- end -}}
{{- end }}
{{- if .Values.manifests.job_db_init }}

View File

@ -13,8 +13,10 @@ limitations under the License.
*/}}
{{- define "metadata.annotations.job.db_sync" }}
{{- if .Values.helm3_hook -}}
helm.sh/hook: post-install,post-upgrade
helm.sh/hook-weight: "-4"
{{- end -}}
{{- end }}
{{- define "keystone.templates._job_db_sync.env_vars" -}}

View File

@ -14,4 +14,5 @@ keystone:
- 0.1.11 Remove congress residue
- 0.1.12 Add helm hook conditional
- 0.1.13 Fix Error - wrong number of args for set
- 0.1.14 Remove setup helm hooks
...