Skip to content

Commit 8d6324f

Browse files
authored
Fix Subscription health check by re-enabling Lua string functions (#190)
The `health.lua.useOpenLibs` parameter got lost when migrating switching to ArgoCD `v0.8.0`. 52ca09e
1 parent 2256fce commit 8d6324f

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

component/argocd.jsonnet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ local argocd(name) =
278278
},
279279
],
280280
},
281+
extraConfig: {
282+
'resource.customizations': std.manifestYamlDoc({
283+
'operators.coreos.com/Subscription': {
284+
// Required to enable Lua string functions like `string.find`
285+
'health.lua.useOpenLibs': true,
286+
},
287+
}),
288+
},
281289
resourceHealthChecks: [
282290
{
283291
group: 'pkg.crossplane.io',

tests/golden/defaults/argocd/argocd/30_argocd/10_argocd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
requests:
2323
cpu: 100m
2424
memory: 256Mi
25+
extraConfig:
26+
resource.customizations: |-
27+
"operators.coreos.com/Subscription":
28+
"health.lua.useOpenLibs": true
2529
image: quay.io/argoproj/argocd
2630
initialRepositories: '- url: ssh://[email protected]/org/repo.git'
2731
initialSSHKnownHosts:

tests/golden/openshift/argocd/argocd/30_argocd/10_argocd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
requests:
2323
cpu: 100m
2424
memory: 256Mi
25+
extraConfig:
26+
resource.customizations: |-
27+
"operators.coreos.com/Subscription":
28+
"health.lua.useOpenLibs": true
2529
image: quay.io/argoproj/argocd
2630
initialRepositories: '- url: ssh://[email protected]/org/repo.git'
2731
initialSSHKnownHosts:

tests/golden/params/argocd/argocd/30_argocd/10_argocd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ spec:
1616
processors:
1717
operation: 10
1818
status: 20
19+
extraConfig:
20+
resource.customizations: |-
21+
"operators.coreos.com/Subscription":
22+
"health.lua.useOpenLibs": true
1923
image: quay.io/argoproj/argocd
2024
initialRepositories: '- url: ssh://[email protected]/org/repo.git'
2125
initialSSHKnownHosts:

tests/golden/prometheus/argocd/argocd/30_argocd/10_argocd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
requests:
2323
cpu: 100m
2424
memory: 256Mi
25+
extraConfig:
26+
resource.customizations: |-
27+
"operators.coreos.com/Subscription":
28+
"health.lua.useOpenLibs": true
2529
image: quay.io/argoproj/argocd
2630
initialRepositories: '- url: ssh://[email protected]/org/repo.git'
2731
initialSSHKnownHosts:

0 commit comments

Comments
 (0)