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 Feb 1, 2024
1 parent ee859d1 commit f7756bc
Show file tree
Hide file tree
Showing 4 changed files with 524 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/test/ks-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.8
version: 0.6.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion src/test/ks-core/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Create the name of the service account to use
{{- if eq .Values.role "host" }}
{{- with lookup "v1" "ConfigMap" (printf "%s" .Release.Namespace) "kubesphere-config" }}
{{- with (fromYaml (index .data "kubesphere.yaml")) }}
{{- if and .authentication .authentication.issuer .authentication.issuer.jwtSecret }}
{{- if and .authentication (.authentication).issuer ((.authentication).issuer).jwtSecret }}
{{- .authentication.issuer.jwtSecret }}
{{- else }}
{{- $.Values.authentication.issuer.jwtSecret | default (randAlphaNum 32 ) }}
Expand Down
150 changes: 137 additions & 13 deletions src/test/ks-core/templates/roletemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1835,29 +1835,93 @@ metadata:
name: workspace-view-app-templates
spec:
description:
en: 'Workspace App Templates View'
zh: '企业空间查看应用模板,应用版本模板等。'
en: 'Application/application version/application instance view'
zh: '应用/应用版本/应用实例查看'
displayName:
en: 'Workspace App Templates View'
zh: '应用模板查看'
en: 'Application/application version/application instance view'
zh: '应用/应用版本/应用实例查看'
rules:
- apiGroups:
- application.kubesphere.io
resources:
- 'apps'
- 'apps/versions'
- 'applications'
- 'attachments'
verbs:
- get
- list
---
apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/role-template-rules: '{"app-templates": "view"}'
labels:
iam.kubesphere.io/category: workspace-app
iam.kubesphere.io/scope: workspace
kubesphere.io/managed: "true"
iam.kubesphere.io/aggregate-to-viewer: ""
name: workspace-view-create-app-templates
spec:
description:
en: 'Workspace Application/application version/application instance view and create'
zh: '应用/应用版本/应用实例查看和创建'
displayName:
en: 'Workspace Application/application version/application instance view and create'
zh: '应用/应用版本/应用实例查看和创建'
rules:
- apiGroups:
- application.kubesphere.io
resources:
- 'apps'
- 'apps/versions'
- 'applications'
- 'attachments'
verbs:
- get
- list
- create
- update
- patch

---
apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/role-template-rules: '{"app-templates": "view"}'
labels:
iam.kubesphere.io/category: workspace-app
iam.kubesphere.io/scope: workspace
kubesphere.io/managed: "true"
iam.kubesphere.io/aggregate-to-viewer: ""
name: workspace-delete-app-templates
spec:
description:
en: 'Workspace Application/application version/application instance deletion'
zh: '应用/应用版本/应用实例删除'
displayName:
en: 'Application/application version/application instance deletion'
zh: '应用/应用版本/应用实例删除'
rules:
- apiGroups:
- application.kubesphere.io
resources:
- 'apps'
- 'apps/versions'
- 'applications'
- 'attachments'
verbs:
- delete

---
apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/role-template-rules: '{"app-templates": "manage"}'
iam.kubesphere.io/dependencies: '["workspace-view-app-templates"]'
iam.kubesphere.io/dependencies: '["workspace-view-app-templates","workspace-view-create-app-templates","workspace-delete-app-templates"]'
labels:
iam.kubesphere.io/category: workspace-app
iam.kubesphere.io/scope: workspace
Expand All @@ -1867,18 +1931,19 @@ metadata:
name: workspace-manage-app-templates
spec:
description:
en: 'Workspace App Templates Management'
zh: '企业空间上传应用模板,应用版本模板等。'
en: 'Workspace applications/application versions/application instance management'
zh: '应用/应用版本/应用实例管理'
displayName:
en: 'Workspace App Templates Management'
zh: '应用模板管理'
en: 'Workspace applications/application versions/application instance management'
zh: '应用/应用版本/应用实例管理'
rules:
- apiGroups:
- application.kubesphere.io
resources:
- 'apps'
- 'apps/versions'
- 'applications'
- 'attachments'
verbs:
- '*'

Expand Down Expand Up @@ -1907,6 +1972,7 @@ spec:
- application.kubesphere.io
resources:
- applications
- attachments
verbs:
- get
- list
Expand All @@ -1917,7 +1983,7 @@ kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/role-template-rules: '{"app-releases": "manage"}'
iam.kubesphere.io/dependencies: '["namespace-view-app-releases"]'
iam.kubesphere.io/dependencies: '["namespace-view-app-releases","namespace-delete-app-releases","namespace-create-app-releases"]'
labels:
iam.kubesphere.io/category: namespace-app
iam.kubesphere.io/scope: namespace
Expand All @@ -1928,14 +1994,72 @@ metadata:
spec:
description:
en: 'Namespace App Releases Management'
zh: '项目下部署升级应用实例。'
zh: '项目下应用实例管理'
displayName:
en: 'Namespace App Releases Management'
zh: '应用实例部署升级'
zh: '应用实例管理'
rules:
- apiGroups:
- application.kubesphere.io
resources:
- applications
- attachments
verbs:
- '*'
---
apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/role-template-rules: '{"app-releases": "manage"}'
labels:
iam.kubesphere.io/category: namespace-app
iam.kubesphere.io/scope: namespace
kubesphere.io/managed: "true"
iam.kubesphere.io/aggregate-to-operator: ""
iam.kubesphere.io/aggregate-to-admin: ""
name: namespace-delete-app-releases
spec:
description:
en: 'Namespace Application instance deletion'
zh: '项目下应用实例删除'
displayName:
en: 'Namespace Application instance deletion'
zh: '应用实例删除'
rules:
- apiGroups:
- application.kubesphere.io
resources:
- applications
- attachments
verbs:
- delete

---
apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/role-template-rules: '{"app-releases": "manage"}'
labels:
iam.kubesphere.io/category: namespace-app
iam.kubesphere.io/scope: namespace
kubesphere.io/managed: "true"
iam.kubesphere.io/aggregate-to-operator: ""
iam.kubesphere.io/aggregate-to-admin: ""
name: namespace-create-app-releases
spec:
description:
en: 'Namespace Application instance create'
zh: '项目下应用实例创建'
displayName:
en: 'Namespace Application instance create'
zh: '应用实例创建'
rules:
- apiGroups:
- application.kubesphere.io
resources:
- applications
- attachments
verbs:
- '*'
- post
Loading

0 comments on commit f7756bc

Please sign in to comment.