Allow values being passed down to implementation charts
This commit is contained in:
parent
47a7abb628
commit
df61aa094f
@ -2,7 +2,7 @@ apiVersion: v2
|
||||
name: kubezeroApp
|
||||
description: KubeZero ArgoCD Application - Root chart of the KubeZero
|
||||
type: application
|
||||
version: 0.1.4
|
||||
version: 0.1.5
|
||||
home: https://kubezero.com
|
||||
keywords:
|
||||
- kubezero
|
||||
|
@ -16,7 +16,13 @@ spec:
|
||||
repoURL: {{ default .root.Values.defaultSource.repoURL }}
|
||||
targetRevision: {{ default .root.Values.defaultSource.targetRevision }}
|
||||
{{- if eq .type "helm" }}
|
||||
{{ $values := index .root.Values .name "values" }}
|
||||
path: {{ default .root.Values.defaultSource.pathPrefix }}charts/{{ .name }}
|
||||
{{- if $values }}
|
||||
helm:
|
||||
values:
|
||||
{{- toYaml $values | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
path: {{ default .root.Values.defaultSource.pathPrefix }}artifacts/{{ .name }}
|
||||
{{- end }}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{- if .Values.certManager.enabled }}
|
||||
{{ template "kubezero.app" dict "root" . "name" "kubezeroCertManager" "type" "helm" }}
|
||||
{{ template "kubezero.app" dict "root" . "name" "certManager" "type" "helm" }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
|
Loading…
Reference in New Issue
Block a user