Skip to content

Commit

Permalink
update ks-core helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ks-ci-bot committed Mar 8, 2024
1 parent bbebe17 commit 8ce0b9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/test/ks-core/files/extensions.customresourcefilters.rego
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ match if {
installStatusMatch
}

match if {
installStatusSearch
installedStatusMatch
}

match if {
enabledStatusSearch
enabledStatusMatch
Expand Down Expand Up @@ -67,6 +72,11 @@ installStatusMatch if {
lower(input.object.status.state) == lower(input.filter.value)
}

installedStatusMatch if {
input.filter.value == "installed"
["Installed","Enabled","Disabled"][_] == input.object.status.state
}

enabledStatusMatch if {
input.filter.value == "true" == input.object.status.enabled
}
5 changes: 4 additions & 1 deletion src/test/ks-core/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ webhooks:
failurePolicy: Ignore
matchPolicy: Exact
namespaceSelector: {}
objectSelector: {}
objectSelector:
matchExpressions:
- key: cluster-role.kubesphere.io/host
operator: DoesNotExist
rules:
- apiGroups:
- cluster.kubesphere.io
Expand Down

0 comments on commit 8ce0b9a

Please sign in to comment.