Merge "Added the helm hook for create user job for exporter"

This commit is contained in:
Zuul 2021-07-12 21:17:32 +00:00 committed by Gerrit Code Review
commit 4d2f78fee2
4 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v10.2.31
description: OpenStack-Helm MariaDB
name: mariadb
version: 0.2.4
version: 0.2.5
home: https://mariadb.com/kb/en/
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
sources:

View File

@ -22,6 +22,12 @@ apiVersion: batch/v1
kind: Job
metadata:
name: exporter-create-sql-user
{{- if .Values.helm3_hook }}
annotations:
"helm.sh/hook": "post-install,post-upgrade"
"helm.sh/hook-weight": "5"
"helm.sh/hook-delete-policy": "before-hook-creation"
{{- end }}
spec:
backoffLimit: {{ .Values.jobs.exporter_create_sql_user.backoffLimit }}
template:

View File

@ -619,6 +619,10 @@ network_policy:
egress:
- {}
# Helm hook breaks for helm2.
# Set helm3_hook: false in case helm2 is used.
helm3_hook: true
manifests:
certificates: false
configmap_bin: true

View File

@ -20,4 +20,5 @@ mariadb:
- 0.2.2 remove deprecated svc annotation tolerate-unready-endpoints
- 0.2.3 Remove panko residue
- 0.2.4 Use full image ref for docker official images
- 0.2.5 Added helm hook for post-install and post-upgrade in prometheus exporter job.
...