File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,34 +5,6 @@ clusterGroup:
55 isHubCluster : true
66 # Override health check for Subscriptions to treat UpgradePending as healthy
77 # Only applies to pinned CSV subscriptions (sandbox and trustee)
8- argoCD :
9- resourceHealthChecks :
10- - group : operators.coreos.com
11- kind : Subscription
12- check : |
13- local hs = {}
14- -- Only apply custom logic to pinned subscriptions
15- local isPinned = (obj.metadata.name == "sandboxed-containers-operator" or
16- obj.metadata.name == "trustee-operator")
17- if obj.status ~= nil and obj.status.state ~= nil then
18- local state = obj.status.state
19- if state == "AtLatestKnown" then
20- hs.status = "Healthy"
21- hs.message = state
22- return hs
23- elseif state == "UpgradePending" and isPinned then
24- hs.status = "Healthy"
25- hs.message = "Pinned subscription at desired version"
26- return hs
27- elseif state == "UpgradePending" then
28- hs.status = "Progressing"
29- hs.message = "Upgrade pending approval"
30- return hs
31- end
32- end
33- hs.status = "Progressing"
34- hs.message = "Waiting for Subscription to be ready"
35- return hs
368 namespaces :
379 - open-cluster-management
3810 - vault
You can’t perform that action at this time.
0 commit comments