Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ks-core helm chart #355

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading