2021-12-27 17:40:47 +07:00
|
|
|
argo-cd:
|
|
|
|
server:
|
2021-12-27 18:28:34 +07:00
|
|
|
extraArgs:
|
|
|
|
- --insecure
|
2021-12-27 17:40:47 +07:00
|
|
|
rbacConfig:
|
|
|
|
policy.default: role:readonly
|
|
|
|
config:
|
2021-12-27 19:07:37 +07:00
|
|
|
statusbadge.enabled: 'true'
|
2021-12-27 17:40:47 +07:00
|
|
|
users.anonymous.enabled: 'true'
|
|
|
|
resource.customizations.health.argoproj.io_Application: |
|
|
|
|
hs = {}
|
|
|
|
hs.status = "Progressing"
|
|
|
|
hs.message = ""
|
|
|
|
if obj.status ~= nil then
|
|
|
|
if obj.status.health ~= nil then
|
|
|
|
hs.status = obj.status.health.status
|
|
|
|
if obj.status.health.message ~= nil then
|
|
|
|
hs.message = obj.status.health.message
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return hs
|
|
|
|
resource.customizations.health.argoproj.io_ApplicationSet: |
|
|
|
|
hs = {}
|
|
|
|
if obj.status ~= nil then
|
|
|
|
if obj.status.conditions ~= nil then
|
|
|
|
for i, condition in pairs(obj.status.conditions) do
|
|
|
|
if condition.type == "ErrorOccurred" and condition.status == "True" then
|
|
|
|
hs.status = "Degraded"
|
|
|
|
hs.message = condition.message
|
|
|
|
return hs
|
|
|
|
end
|
|
|
|
if condition.type == "ResourcesUpToDate" and condition.status == "True" then
|
|
|
|
hs.status = "Healthy"
|
|
|
|
hs.message = condition.message
|
|
|
|
return hs
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
hs.status = "Progressing"
|
|
|
|
hs.message = ""
|
|
|
|
return hs
|
|
|
|
ingress:
|
|
|
|
enabled: true
|
|
|
|
ingressClassName: nginx
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
|
|
external-dns.alpha.kubernetes.io/target: homelab-tunnel.khuedoan.com
|
|
|
|
external-dns.alpha.kubernetes.io/cloudflare-proxied: 'true'
|
|
|
|
hosts:
|
|
|
|
- &host argocd.khuedoan.com
|
|
|
|
tls:
|
|
|
|
- secretName: argocd-tls-certificate
|
|
|
|
hosts:
|
|
|
|
- *host
|