File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
charts/gitops-runtime/templates/hooks/pre-install Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 11{{- if not .Values.installer.skipValidation }}
2+ apiVersion : v1
3+ kind : ConfigMap
4+ metadata :
5+ name : validate-values-config
6+ annotations :
7+ helm.sh/hook : pre-install,pre-upgrade
8+ helm.sh/hook-delete-policy : hook-succeeded,before-hook-creation,hook-failed
9+ helm.sh/hook-weight : " -10"
10+ data :
11+ values.yaml : |
12+ {{ .Values | toYaml | indent 4 }}
13+
14+ ---
215apiVersion : batch/v1
316kind : Job
417metadata :
2639 value : {{ .Chart.Version }}
2740 command : ["sh", "-c"]
2841 args :
29- - |
30- echo {{ .Values | toYaml | quote }} > values.yaml
31- cf helm validate --values values.yaml --namespace ${NAMESPACE} --version ${VERSION} --hook --log-level debug
42+ - cf helm validate --values /job_tmp/values.yaml --namespace ${NAMESPACE} --version ${VERSION} --hook --log-level debug
43+ volumeMounts :
44+ - name : customized-values
45+ mountPath : " /job_tmp"
46+ volumes :
47+ - name : customized-values
48+ configMap :
49+ name : validate-values-config
3250{{- end }}
You can’t perform that action at this time.
0 commit comments