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 14, 2024
1 parent d94f478 commit 939f8d9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 56 deletions.
7 changes: 0 additions & 7 deletions src/test/ks-core/templates/builtinroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ role:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "管理项目中的所有资源。", "en": "Manage all resources in the project."}'
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: admin
rules:
Expand Down Expand Up @@ -53,7 +52,6 @@ role:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "管理项目中除用户和角色之外的资源。", "en": "Manage resources other than users and roles in the project."}'
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: operator
rules:
Expand Down Expand Up @@ -107,7 +105,6 @@ role:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "查看项目中的所有资源。", "en": "View all resources in the project."}'
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: viewer
rules:
Expand Down Expand Up @@ -150,7 +147,6 @@ role:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "管理企业空间中的所有资源。", "en": "Manage all resources in the workspace."}'
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: admin
rules:
Expand Down Expand Up @@ -183,7 +179,6 @@ role:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "查看企业空间设置。", "en": "View workspace settings."}'
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: regular
rules:
Expand Down Expand Up @@ -219,7 +214,6 @@ role:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "查看企业设置、创建项目。", "en": "View workspace settings, create projects."}'
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: self-provisioner
rules: []
Expand Down Expand Up @@ -249,7 +243,6 @@ role:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "查看企业空间中的所有资源。", "en": "View all resources in the workspace."}'
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: viewer
rules:
Expand Down
6 changes: 2 additions & 4 deletions src/test/ks-core/templates/clusterroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ metadata:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "管理集群中的所有资源。", "en": "Manage all resources in the cluster."}'
name: cluster-admin
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: cluster-admin
aggregationRoleTemplates:
roleSelector:
matchLabels:
Expand All @@ -31,9 +30,8 @@ metadata:
annotations:
kubesphere.io/creator: system
kubesphere.io/description: '{"zh": "查看集群中的所有资源。", "en": "View all resources in the cluster."}'
name: cluster-viewer
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: cluster-viewer
aggregationRoleTemplates:
roleSelector:
matchLabels:
Expand Down
11 changes: 1 addition & 10 deletions src/test/ks-core/templates/globalroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ rules:
apiVersion: iam.kubesphere.io/v1beta1
kind: GlobalRole
metadata:
labels:
iam.kubesphere.io/auto-aggregate: "true"
annotations:
iam.kubesphere.io/auto-aggregate: "true"
iam.kubesphere.io/rego-override: |-
package authz
default allow = false
Expand Down Expand Up @@ -129,13 +128,6 @@ rules:
verbs:
- get
- list
- apiGroups:
- license.kubesphere.io
resources:
- licenses
verbs:
- get
- list
- apiGroups:
- cluster.kubesphere.io
resources:
Expand Down Expand Up @@ -168,7 +160,6 @@ metadata:
allowedScopes := ["Workspace","Namespace","Cluster"]
allowedScopes[_] == input.ResourceScope
}
labels:
iam.kubesphere.io/auto-aggregate: "true"
name: platform-admin
aggregationRoleTemplates:
Expand Down
35 changes: 0 additions & 35 deletions src/test/ks-core/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,41 +284,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:
matchExpressions:
- key: cluster-role.kubesphere.io/host
operator: DoesNotExist
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 939f8d9

Please sign in to comment.