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 1, 2024
1 parent 4d977d9 commit 0f9628f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
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 @@ -75,7 +75,7 @@ Create the name of the service account to use
{{- end }}

{{- define "jwtSecret" -}}
{{- if eq .Values.role "host" }}
{{- if eq .Values.authentication.issuer.jwtSecret "" }}
{{- with lookup "v1" "ConfigMap" (printf "%s" .Release.Namespace) "kubesphere-config" }}
{{- with (fromYaml (index .data "kubesphere.yaml")) }}
{{- if and .authentication (.authentication).jwtSecret }}
Expand Down
7 changes: 7 additions & 0 deletions src/test/ks-core/templates/globalroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ rules:
verbs:
- get
- list
- apiGroups:
- cluster.kubesphere.io
resources:
- 'labels'
verbs:
- get
- list
- nonResourceURLs:
- '/static/images/*'
verbs:
Expand Down
6 changes: 3 additions & 3 deletions src/test/ks-core/templates/kubesphere-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ data:
jwtSecret: {{ include "jwtSecret" . | quote }}
maximumClockSkew: {{ .Values.authentication.issuer.maximumClockSkew | default "10s" }}
{{- if eq .Values.role "member" }}
accessTokenMaxAge: 0
accessTokenMaxAge: 0s
{{- else }}
accessTokenMaxAge: {{ .Values.authentication.issuer.accessTokenMaxAge }}
accessTokenMaxAge: {{ .Values.authentication.issuer.accessTokenMaxAge }}
{{- end }}
accessTokenInactivityTimeout: {{ .Values.authentication.issuer.accessTokenInactivityTimeout }}
accessTokenInactivityTimeout: {{ .Values.authentication.issuer.accessTokenInactivityTimeout }}
multicluster:
clusterRole: {{ .Values.role }}
terminal:
Expand Down

0 comments on commit 0f9628f

Please sign in to comment.