From a3e6f1db3a2a19f54d790f9f4cd6ba7fd8b3f34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20R=C3=B8stvik?= Date: Mon, 5 Dec 2022 14:33:10 +0100 Subject: [PATCH] test --- Charts/argo-cd/values.yaml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/Charts/argo-cd/values.yaml b/Charts/argo-cd/values.yaml index 1b2273d..aaab6d2 100644 --- a/Charts/argo-cd/values.yaml +++ b/Charts/argo-cd/values.yaml @@ -18,7 +18,31 @@ argo-cd: url: https://argoproj.github.io/argo-helm configs: cm: - resource.customizations.health.networking.k8s.io_Ingress: | - hs = {} - hs.status = "Healthy" - return hs + resource.customizations.health: + networking.k8s.io_Ingress: | + hs = {} + hs.status = "Healthy" + return hs + + cert-manager.io_Certificate: | + 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