Improve app logic
This commit is contained in:
parent
61f570e207
commit
c47a089156
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: kubezero
|
name: kubezero
|
||||||
description: KubeZero ArgoCD Application - Root App of Apps chart of KubeZero
|
description: KubeZero ArgoCD Application - Root App of Apps chart of KubeZero
|
||||||
type: application
|
type: application
|
||||||
version: 0.3.1
|
version: 0.3.2
|
||||||
home: https://kubezero.com
|
home: https://kubezero.com
|
||||||
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -31,15 +31,4 @@ spec:
|
|||||||
destination:
|
destination:
|
||||||
server: {{ .root.Values.global.defaultDestination.server }}
|
server: {{ .root.Values.global.defaultDestination.server }}
|
||||||
namespace: {{ default "kube-system" .namespace }}
|
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 }}
|
{{- end }}
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
{{- if index .Values "aws-ebs-csi-driver" "enabled" }}
|
{{- if index .Values "aws-ebs-csi-driver" "enabled" }}
|
||||||
{{ template "kubezero-app.app" dict "root" . "name" "aws-ebs-csi-driver" "type" "helm" }}
|
{{ template "kubezero-app.app" dict "root" . "name" "aws-ebs-csi-driver" "type" "helm" }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
{{- if .Values.calico.enabled }}
|
{{- if .Values.calico.enabled }}
|
||||||
{{ template "kubezero-app.app" dict "root" . "name" "calico" "type" .Values.calico.type "retain" true }}
|
{{ template "kubezero-app.app" dict "root" . "name" "calico" "type" .Values.calico.type "retain" true }}
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: api
|
||||||
|
kind: CustomResourceDefinition
|
||||||
|
jsonPointers:
|
||||||
|
- /status
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
{{- if index .Values "cert-manager" "enabled" }}
|
{{- 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
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
{{- if index .Values "kiam" "enabled" }}
|
{{- if index .Values "kiam" "enabled" }}
|
||||||
{{ template "kubezero-app.app" dict "root" . "name" "kiam" "type" "helm" }}
|
{{ template "kubezero-app.app" dict "root" . "name" "kiam" "type" "helm" }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
{{- if index .Values "local-volume-provisioner" "enabled" }}
|
{{- if index .Values "local-volume-provisioner" "enabled" }}
|
||||||
{{ template "kubezero-app.app" dict "root" . "name" "local-volume-provisioner" "type" "kustomize" }}
|
{{ template "kubezero-app.app" dict "root" . "name" "local-volume-provisioner" "type" "kustomize" }}
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user