Improve app logic

This commit is contained in:
Stefan Reimer 2020-07-08 14:52:13 +01:00
parent f20fa08521
commit 1096509121
7 changed files with 20 additions and 13 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero
description: KubeZero ArgoCD Application - Root App of Apps chart of KubeZero
type: application
version: 0.3.1
version: 0.3.2
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords:

View File

@ -31,15 +31,4 @@ spec:
destination:
server: {{ .root.Values.global.defaultDestination.server }}
namespace: {{ default "kube-system" .namespace }}
{{- if or ( not .retain ) .selfheal }}
syncPolicy:
automated:
{{- if not .retain }}
prune: true
{{- end }}
{{- if .selfheal }}
selfHeal: true
{{- end }}
{{- end }}
{{- end }}

View File

@ -1,3 +1,6 @@
{{- if index .Values "aws-ebs-csi-driver" "enabled" }}
{{ template "kubezero-app.app" dict "root" . "name" "aws-ebs-csi-driver" "type" "helm" }}
syncPolicy:
automated:
prune: true
{{- end }}

View File

@ -1,3 +1,8 @@
{{- if .Values.calico.enabled }}
{{ template "kubezero-app.app" dict "root" . "name" "calico" "type" .Values.calico.type "retain" true }}
ignoreDifferences:
- group: api
kind: CustomResourceDefinition
jsonPointers:
- /status
{{- end }}

View File

@ -1,5 +1,9 @@
{{- if index .Values "cert-manager" "enabled" }}
{{ template "kubezero-app.app" dict "root" . "name" "cert-manager" "type" "helm" "namespace" "cert-manager" "selfheal" "true" }}
{{ template "kubezero-app.app" dict "root" . "name" "cert-manager" "type" "helm" "namespace" "cert-manager" }}
syncPolicy:
automated:
prune: true
selfHeal: true
---
apiVersion: v1
kind: Namespace

View File

@ -1,3 +1,6 @@
{{- if index .Values "kiam" "enabled" }}
{{ template "kubezero-app.app" dict "root" . "name" "kiam" "type" "helm" }}
syncPolicy:
automated:
prune: true
{{- end }}

View File

@ -1,3 +1,6 @@
{{- if index .Values "local-volume-provisioner" "enabled" }}
{{ template "kubezero-app.app" dict "root" . "name" "local-volume-provisioner" "type" "kustomize" }}
syncPolicy:
automated:
prune: true
{{- end }}