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 Aug 9, 2023
1 parent 290c07f commit f3a2f11
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
11 changes: 9 additions & 2 deletions src/test/ks-core/templates/builtinroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ role:
aggregationRoleTemplates:
roleSelector:
matchLabels:
iam.kubesphere.io/scope: "namespace"
kubesphere.io/managed: "true"
apiVersion: iam.kubesphere.io/v1beta1
kind: Role
Expand Down Expand Up @@ -45,6 +46,7 @@ role:
matchLabels:
iam.kubesphere.io/aggregate-to-operator: ""
kubesphere.io/managed: "true"
iam.kubesphere.io/scope: "namespace"
apiVersion: iam.kubesphere.io/v1beta1
kind: Role
metadata:
Expand Down Expand Up @@ -98,6 +100,7 @@ role:
matchLabels:
iam.kubesphere.io/aggregate-to-viewer: ""
kubesphere.io/managed: "true"
iam.kubesphere.io/scope: "namespace"
apiVersion: iam.kubesphere.io/v1beta1
kind: Role
metadata:
Expand Down Expand Up @@ -126,8 +129,9 @@ metadata:
iam.kubesphere.io/scope: "workspace"
role:
aggregationRoleTemplates:
roleSelectors:
- matchLabels: {}
roleSelector:
matchLabels:
iam.kubesphere.io/scope: 'workspace'
templateNames:
- workspace-manage-workspace-settings
- workspace-view-workspace-settings
Expand Down Expand Up @@ -170,6 +174,7 @@ role:
roleSelector:
matchLabels:
iam.kubesphere.io/aggregate-to-regular: ""
iam.kubesphere.io/scope: "workspace"
templateNames:
- workspace-view-workspace-settings
apiVersion: iam.kubesphere.io/v1beta1
Expand Down Expand Up @@ -204,6 +209,7 @@ role:
roleSelector:
matchLabels:
iam.kubesphere.io/aggregate-to-self-provisioner: ""
iam.kubesphere.io/scope: "workspace"
templateNames:
- workspace-create-projects
- workspace-view-workspace-settings
Expand All @@ -229,6 +235,7 @@ role:
aggregationRoleTemplates:
roleSelector:
matchLabels:
iam.kubesphere.io/scope: "workspace"
iam.kubesphere.io/aggregate-to-viewer: ""
templateNames:
- workspace-view-projects
Expand Down
26 changes: 20 additions & 6 deletions src/test/ks-core/templates/roletemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1218,8 +1218,8 @@ metadata:
name: namespace-view-project-settings
spec:
description:
en: 'View project settings including project basic information, external access settings, network policies and resource quotas settings.'
zh: '查看项目设置,包括项目基本信息、外部访问设置、网络策略、资源配额等。'
en: 'View project settings including project basic information, external access settings and resource quotas settings.'
zh: '查看项目设置,包括项目基本信息、外部访问设置、资源配额等。'
displayName:
en: Project Settings Viewing
zh: '项目设置查看'
Expand All @@ -1230,6 +1230,20 @@ spec:
- 'namespaces'
verbs:
- 'get'
- apiGroups:
- 'resources.kubesphere.io'
resources:
- 'quotas'
- 'metrics'
verbs:
- 'list'
- apiGroups:
- ''
resources:
- 'limitranges'
verbs:
- 'list'


---
apiVersion: iam.kubesphere.io/v1beta1
Expand All @@ -1244,8 +1258,8 @@ metadata:
name: namespace-manage-project-settings
spec:
description:
en: 'Manage project settings including project basic information, external access settings, network policies and resource quotas settings.'
zh: '管理项目设置,包括项目基本信息、外部访问设置、网络策略、资源配额等。'
en: 'Manage project settings including project basic information, external access settings and resource quotas settings.'
zh: '管理项目设置,包括项目基本信息、外部访问设置、资源配额等。'
displayName:
en: Project Settings Management
zh: '项目设置管理'
Expand Down Expand Up @@ -1281,7 +1295,7 @@ spec:
- apiGroups:
- '*'
resources:
- members
- namespacemembers
- rolebindings
verbs:
- get
Expand Down Expand Up @@ -1311,7 +1325,7 @@ spec:
- apiGroups:
- '*'
resources:
- members
- namespacemembers
- rolebindings
verbs:
- '*'
Expand Down

0 comments on commit f3a2f11

Please sign in to comment.