Improved root-app value handling

This commit is contained in:
Stefan Reimer 2020-05-04 12:10:15 +01:00
parent 2669521f09
commit e2da9e08f7
9 changed files with 38 additions and 14 deletions

View File

@ -1,12 +1,15 @@
# KubeZero - ZeroDownTime Kubernetes platform
## Abstract
KubeZero is a mildly opinionated collection of Kubernetes components to be deployed on a bare Kubernetes cluster.
KubeZero is a mildly opinionated collection of Kubernetes components to be deployed on a bare Kubernetes cluster.
All components are 100% organic OpenSource.
## Quickstart
## Architecure
The kuberzero-app is root application Helm chart.
This also implements the *umbrella chart* pattern in order to inject custom values into upstream charts.
## Components

View File

@ -2,4 +2,4 @@ apiVersion: v2
name: kubezero-app
description: KubeZero ArgoCD Application - Root chart of the KubeZero
type: application
version: 0.1.0
version: 0.1.1

View File

@ -8,11 +8,11 @@ spec:
project: kubezero
source:
repoURL: {{ .Values.source.repoURL }}
targetRevision: {{ .Values.source.targetRevision }}
path: {{ .Values.source.pathPrefix }}/artifacts/calico
repoURL: {{ default .Values.defaultSource.repoURL }}
targetRevision: {{ default .Values.defaultSource.targetRevision }}
path: {{ default .Values.defaultSource.pathPrefix }}/artifacts/calico
destination:
server: {{ .Values.destination.server }}
server: {{ default .Values.defaultDestination.server }}
namespace: kube-system
{{- end }}

View File

@ -10,11 +10,11 @@ spec:
project: kubezero
source:
repoURL: {{ .Values.source.repoURL }}
targetRevision: {{ .Values.source.targetRevision }}
path: {{ .Values.source.pathPrefix }}/artifacts/local-volume-provisioner
repoURL: {{ default .Values.defaultSource.repoURL }}
targetRevision: {{ default .Values.defaultSource.targetRevision }}
path: {{ default .Values.defaultSource.pathPrefix }}/artifacts/local-volume-provisioner
destination:
server: {{ .Values.destination.server }}
server: {{ default .Values.defaultDestination.server }}
namespace: kube-system
{{- end }}

View File

@ -1,6 +1,7 @@
destination:
defaultDestination:
server: https://kubernetes.default.svc
source:
defaultSource:
# This repoURL is used a base for all the repoURLs applications
# Setting this to a eg. private git repo incl. the use of pathPrefix allows kubezero to be
# integrated into any repository as a git subtree if for example public internet access is unavailable

View File

@ -1,7 +1,7 @@
apiVersion: v2
description: KubeZero Helm chart to install Zero Down Time Kuberenetes platform
name: kubezero
version: 0.1.7
version: 0.1.8
home: https://kubezero.com
keywords:
- kubezero

View File

@ -15,11 +15,18 @@ spec:
repoURL: https://github.com/Zero-Down-Time/kubezero
targetRevision: HEAD
path: charts/kubezero-app
{{- if .Values.config }}
helm:
values: |
{{- toYaml .Values.config | nindent 8 }}
{{- end }}
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: false
prune: true
selfHeal: false
{{- end }}

View File

@ -24,4 +24,8 @@ spec:
server: https://kubernetes.default.svc
- namespace: cert-manager
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: '*'
kind: '*'
{{- end }}

View File

@ -1,5 +1,14 @@
bootstrap: true
#config:
# defaultSource:
# repoURL: https://myprivate.repo.com/k8s-components
# pathPrefix: 'some-folder'
#
# # Enabled component
# calico:
# enabled: true
argo-cd:
installCRDs: false