Skip to content

Commit

Permalink
Merge pull request #354 from kubesphere/sync/ks-core
Browse files Browse the repository at this point in the history
Update ks-core helm chart
  • Loading branch information
wansir authored Feb 1, 2024
2 parents 1c43e75 + 23cfd9f commit ee859d1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 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.7
version: 0.5.8

# 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 @@ -59,7 +59,7 @@ Create the name of the service account to use
{{- end }}

{{- define "portal.host" -}}
{{- if and .Values.portal.https .Values.portal.https.port }}
{{- if and .Values.portal.https (.Values.portal.https).port }}
{{- if eq (int .Values.portal.https.port) 443 }}
{{- printf "https://%s" .Values.portal.hostname }}
{{- else }}
Expand Down
10 changes: 10 additions & 0 deletions src/test/ks-core/templates/license.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ if eq .Values.role "host" }}
apiVersion: v1
kind: Secret
metadata:
name: ks-license
namespace: kubesphere-system
stringData:
base: "{}"

{{ end }}
30 changes: 14 additions & 16 deletions src/test/ks-core/templates/roletemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/dependencies: '["cluster-view-volumes"]'
iam.kubesphere.io/dependencies: '["cluster-view-persistentvolumeclaim"]'
iam.kubesphere.io/role-template-rules: '{"storageclasses": "view"}'
labels:
iam.kubesphere.io/category: cluster-storage-management
Expand All @@ -747,7 +747,7 @@ apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/dependencies: '["cluster-view-volumes", "cluster-view-storageclasses"]'
iam.kubesphere.io/dependencies: '["cluster-view-persistentvolumeclaim", "cluster-view-storageclasses"]'
iam.kubesphere.io/role-template-rules: '{"storageclasses": "manage"}'
labels:
iam.kubesphere.io/category: cluster-storage-management
Expand All @@ -765,13 +765,13 @@ apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/role-template-rules: '{"volumes": "view"}'
iam.kubesphere.io/role-template-rules: '{"persistentvolumeclaim": "view"}'
labels:
iam.kubesphere.io/category: cluster-storage-management
iam.kubesphere.io/aggregate-to-cluster-viewer: ""
iam.kubesphere.io/scope: "cluster"
kubesphere.io/managed: 'true'
name: cluster-view-volumes
name: cluster-view-persistentvolumeclaim
spec:
displayName:
en: Persistent Volume Claim Viewing
Expand All @@ -783,13 +783,13 @@ apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/dependencies: '["cluster-view-volumes", "cluster-view-storageclasses"]'
iam.kubesphere.io/role-template-rules: '{"volumes": "manage"}'
iam.kubesphere.io/dependencies: '["cluster-view-persistentvolumeclaim", "cluster-view-storageclasses"]'
iam.kubesphere.io/role-template-rules: '{"persistentvolumeclaim": "manage"}'
labels:
iam.kubesphere.io/category: cluster-storage-management
iam.kubesphere.io/scope: "cluster"
kubesphere.io/managed: 'true'
name: cluster-manage-volumes
name: cluster-manage-persistentvolumeclaim
spec:
displayName:
en: Persistent Volume Claim Management
Expand Down Expand Up @@ -1484,7 +1484,6 @@ spec:
- '*'
resources:
- secrets
- secrets
verbs:
- list

Expand Down Expand Up @@ -1668,21 +1667,20 @@ apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/dependencies: '["namespace-view-snapshots"]'
iam.kubesphere.io/role-template-rules: '{"volumes": "view"}'
iam.kubesphere.io/role-template-rules: '{"persistentvolumeclaims": "view"}'
labels:
iam.kubesphere.io/aggregate-to-operator: ""
iam.kubesphere.io/aggregate-to-viewer: ""
iam.kubesphere.io/category: namespace-storage-management
iam.kubesphere.io/scope: "namespace"
kubesphere.io/managed: "true"
name: namespace-view-volumes
name: namespace-view-persistentvolumeclaims
spec:
description:
en: 'View persistent volume claims in the project.'
zh: '查看项目中的持久卷声明。'
displayName:
en: Volume Viewing
en: PersistentVolumeClaims Viewing
zh: '持久卷声明查看'
rules:
- apiGroups:
Expand All @@ -1705,20 +1703,20 @@ apiVersion: iam.kubesphere.io/v1beta1
kind: RoleTemplate
metadata:
annotations:
iam.kubesphere.io/dependencies: '["namespace-view-volumes","namespace-manage-snapshots"]'
iam.kubesphere.io/role-template-rules: '{"volumes": "manage"}'
iam.kubesphere.io/dependencies: '["namespace-view-persistentvolumeclaims"]'
iam.kubesphere.io/role-template-rules: '{"persistentvolumeclaims": "manage"}'
labels:
iam.kubesphere.io/aggregate-to-operator: ""
iam.kubesphere.io/category: namespace-storage-management
iam.kubesphere.io/scope: "namespace"
kubesphere.io/managed: "true"
name: namespace-manage-volumes
name: namespace-manage-persistentvolumeclaims
spec:
description:
en: 'Create, edit, and delete persistent volume claims in the project.'
zh: '创建、编辑和删除项目中的持久卷声明。'
displayName:
en: Volume Management
en: PersistentVolumeClaims Management
zh: 持久卷声明管理
rules:
- apiGroups:
Expand Down

0 comments on commit ee859d1

Please sign in to comment.