You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resource_customizations/_.crossplane.io/_/health.lua
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
-- Health check copied from here: https://github.com/crossplane/docs/blob/bd701357e9d5eecf529a0b42f23a78850a6d1d87/content/master/guides/crossplane-with-argo-cd.md
1
+
-- Health check copied from here: https://github.com/crossplane/docs/blob/709889c5dbe6e5a2ea3dffd66fe276cf465b47b5/content/master/guides/crossplane-with-argo-cd.md
2
2
3
3
health_status= {
4
4
status="Progressing",
@@ -18,9 +18,10 @@ local has_no_status = {
18
18
"Composition",
19
19
"CompositionRevision",
20
20
"DeploymentRuntimeConfig",
21
-
"ControllerConfig",
21
+
"ClusterProviderConfig",
22
22
"ProviderConfig",
23
-
"ProviderConfigUsage"
23
+
"ProviderConfigUsage",
24
+
"ControllerConfig" -- Added to ensure that healthcheck is backwards-compatible with Crossplane v1
24
25
}
25
26
ifobj.status==nilornext(obj.status) ==nilandcontains(has_no_status, obj.kind) then
26
27
health_status.status="Healthy"
@@ -29,7 +30,7 @@ if obj.status == nil or next(obj.status) == nil and contains(has_no_status, obj.
Copy file name to clipboardExpand all lines: resource_customizations/_.upbound.io/_/health.lua
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
-- Health check copied from here: https://github.com/crossplane/docs/blob/bd701357e9d5eecf529a0b42f23a78850a6d1d87/content/master/guides/crossplane-with-argo-cd.md
1
+
-- Health check copied from here: https://github.com/crossplane/docs/blob/709889c5dbe6e5a2ea3dffd66fe276cf465b47b5/content/master/guides/crossplane-with-argo-cd.md
2
2
3
3
health_status= {
4
4
status="Progressing",
@@ -15,6 +15,7 @@ local function contains (table, val)
15
15
end
16
16
17
17
localhas_no_status= {
18
+
"ClusterProviderConfig",
18
19
"ProviderConfig",
19
20
"ProviderConfigUsage"
20
21
}
@@ -26,7 +27,7 @@ if obj.status == nil or next(obj.status) == nil and contains(has_no_status, obj.
0 commit comments