Add cert-manager state handling for argo

This commit is contained in:
Stefan Reimer 2020-08-15 15:59:57 +01:00
parent 56ef55ef7a
commit 7be12de4e8
5 changed files with 53 additions and 3 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2 apiVersion: v2
description: KubeZero ArgoCD Helm chart to install ArgoCD itself and the KubeZero ArgoCD Application description: KubeZero ArgoCD Helm chart to install ArgoCD itself and the KubeZero ArgoCD Application
name: kubezero-argo-cd name: kubezero-argo-cd
version: 0.3.10 version: 0.3.11
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:

View File

@ -44,6 +44,31 @@ argo-cd:
# argo-cd.server.config.url -- ArgoCD hostname to be exposed via Istio # argo-cd.server.config.url -- ArgoCD hostname to be exposed via Istio
url: argocd.example.com url: argocd.example.com
resource.customizations: |
cert-manager.io/Certificate:
# Lua script for customizing the health status assessment
health.lua: |
hs = {}
if obj.status ~= nil then
if obj.status.conditions ~= nil then
for i, condition in ipairs(obj.status.conditions) do
if condition.type == "Ready" and condition.status == "False" then
hs.status = "Degraded"
hs.message = condition.message
return hs
end
if condition.type == "Ready" and condition.status == "True" then
hs.status = "Healthy"
hs.message = condition.message
return hs
end
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for certificate"
return hs
# Rename former https port to grpc, works with istio + insecure # Rename former https port to grpc, works with istio + insecure
service: service:
servicePortHttpsName: grpc servicePortHttpsName: grpc

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-logging name: kubezero-logging
description: KubeZero Umbrella Chart for complete EFK stack description: KubeZero Umbrella Chart for complete EFK stack
type: application type: application
version: 0.0.2 version: 0.1.0
appVersion: 1.2.1 appVersion: 1.2.1
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

View File

@ -3,6 +3,22 @@
syncPolicy: syncPolicy:
automated: automated:
prune: true prune: true
ignoreDifferences:
- group: admissionregistration.k8s.io
kind: ValidatingWebhookConfiguration
jsonPointers:
- /webhooks/0/clientConfig/caBundle
- /webhooks/1/clientConfig/caBundle
- /webhooks/2/clientConfig/caBundle
- /webhooks/3/clientConfig/caBundle
- /webhooks/4/clientConfig/caBundle
- /webhooks/5/clientConfig/caBundle
- /webhooks/6/clientConfig/caBundle
- group: apiextensions.k8s.io
kind: CustomResourceDefinition
jsonPointers:
- /status
--- ---
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace

View File

@ -133,11 +133,12 @@ kubezero:
{{- if .Values.logging.version }} {{- if .Values.logging.version }}
version: {{ .Values.logging.version }} version: {{ .Values.logging.version }}
{{- end }}
{{- if .Values.logging.fullnameOverride }} {{- if .Values.logging.fullnameOverride }}
{{- end }}
fullnameOverride: {{ .Values.logging.fullnameOverride }} fullnameOverride: {{ .Values.logging.fullnameOverride }}
{{- end }} {{- end }}
es: es:
{{- if .Values.logging.es.nodeSets }} {{- if .Values.logging.es.nodeSets }}
nodeSets: nodeSets:
@ -146,6 +147,14 @@ kubezero:
{{- end }} {{- end }}
{{- end }} {{- end }}
prometheus: {{ .Values.metrics.enabled }} prometheus: {{ .Values.metrics.enabled }}
{{- if .Values.logging.es.s3Snapshot }}
s3Snapshot:
{{- with .Values.logging.es.s3Snapshot }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
{{- if .Values.logging.kibana }} {{- if .Values.logging.kibana }}
kibana: kibana:
{{- with .Values.logging.kibana }} {{- with .Values.logging.kibana }}