Skip to content

Commit 30121e3

Browse files
committed
fix: remove uneeded resource constrains
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent fda5a3e commit 30121e3

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

values-simple.yaml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)