feat(helm): ability to disable helm hooks (#23601)

Co-authored-by: Mike Joseph <mikejoseph@Mikes-MacBook-Pro.local>
This commit is contained in:
Mike J 2023-04-06 23:30:17 +03:00 committed by GitHub
parent 8d14420d14
commit a7f306181e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,7 @@ maintainers:
- name: craig-rueda
email: craig@craigrueda.com
url: https://github.com/craig-rueda
version: 0.9.0
version: 0.9.1
dependencies:
- name: postgresql
version: 12.1.6

View File

@ -23,7 +23,7 @@ NOTE: This file is generated by helm-docs: https://github.com/norwoodj/helm-docs
# superset
![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=flat-square)
![Version: 0.9.1](https://img.shields.io/badge/Version-0.9.1-informational?style=flat-square)
Apache Superset is a modern, enterprise-ready business intelligence web application
@ -89,6 +89,7 @@ helm install my-superset superset/superset
| init.containerSecurityContext | object | `{}` | |
| init.createAdmin | bool | `true` | |
| init.enabled | bool | `true` | |
| init.helmHook | bool | `true` | |
| init.initContainers | list | a container waiting for postgres | List of initContainers |
| init.initscript | string | a script to create admin user and initailize roles | A Superset init script |
| init.loadExamples | bool | `false` | |

View File

@ -19,9 +19,11 @@ apiVersion: batch/v1
kind: Job
metadata:
name: {{ template "superset.name" . }}-init-db
{{- if .Values.init.helmHook }}
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": "before-hook-creation"
{{- end }}
namespace: {{ .Release.Namespace }}
spec:
template:

View File

@ -638,6 +638,7 @@ init:
- "-c"
- ". {{ .Values.configMountPath }}/superset_bootstrap.sh; . {{ .Values.configMountPath }}/superset_init.sh"
enabled: true
helmHook: true
loadExamples: false
createAdmin: true
adminUser: