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 70b162b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 41 deletions.
2 changes: 0 additions & 2 deletions src/test/ks-core/crds/kubesphere.io_extensionversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ spec:
additionalProperties:
type: string
type: object
docs:
type: string
externalDependencies:
description: ExternalDependencies
items:
Expand Down
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
}
7 changes: 0 additions & 7 deletions src/test/ks-core/templates/globalroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ rules:
verbs:
- get
- list
- apiGroups:
- license.kubesphere.io
resources:
- licenses
verbs:
- get
- list
- apiGroups:
- cluster.kubesphere.io
resources:
Expand Down
32 changes: 0 additions & 32 deletions src/test/ks-core/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,38 +317,6 @@ webhooks:

---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: license.kubesphere.io
webhooks:
- admissionReviewVersions:
- v1
clientConfig:
caBundle: {{ b64enc $ca.Cert | quote }}
service:
name: ks-controller-manager
namespace: kubesphere-system
path: /license-cluster-checker
port: 443
name: license-cluster-checker.kubesphere.io
failurePolicy: Ignore
matchPolicy: Exact
namespaceSelector: {}
objectSelector: {}
rules:
- apiGroups:
- cluster.kubesphere.io
apiVersions:
- v1alpha1
operations:
- CREATE
resources:
- clusters
scope: '*'
sideEffects: None
timeoutSeconds: 30
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
name: defaulter.config.kubesphere.io
Expand Down

0 comments on commit 70b162b

Please sign in to comment.