feat(helm): ability to disable helm hooks (#23601)
Co-authored-by: Mike Joseph <mikejoseph@Mikes-MacBook-Pro.local>
This commit is contained in:
parent
8d14420d14
commit
a7f306181e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ NOTE: This file is generated by helm-docs: https://github.com/norwoodj/helm-docs
|
|||
|
||||
# superset
|
||||
|
||||

|
||||

|
||||
|
||||
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` | |
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue