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 Nov 28, 2023
1 parent e18cc26 commit 8f5caf4
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 18 deletions.
25 changes: 25 additions & 0 deletions src/test/ks-core/templates/app-gobalrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,35 @@ rules:
- application.kubesphere.io
resources:
- 'apps'
- 'categories'
- 'apps/versions'
verbs:
- get
- list
# Permissions required to create edge app
- apiGroups:
- resources.kubesphere.io
resources:
- 'deployments'
verbs:
- get
- list
- apiGroups:
- ''
resources:
- 'secrets'
- 'limitranges'
verbs:
- get
- list
# Permissions required to install the edge app release
- apiGroups:
- infra.kubesphere.io
resources:
- 'nodetrees'
verbs:
- get
- list

---
apiVersion: iam.kubesphere.io/v1beta1
Expand Down
20 changes: 3 additions & 17 deletions src/test/ks-core/templates/app-roletemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,6 @@ spec:
- 'applications'
verbs:
- '*'
# 创建边缘 app 需要的权限
- apiGroups:
- resources.kubesphere.io
resources:
- 'deployments'
verbs:
- '*'
- apiGroups:
- ''
resources:
- 'secrets'
- 'limitranges'
verbs:
- '*'

# namespace scope role templates
---
Expand Down Expand Up @@ -206,11 +192,11 @@ metadata:
name: namespace-manage-app-releases
spec:
description:
en: 'Namespace App Releases View'
en: 'Namespace App Releases Management'
zh: '项目下部署升级应用实例。'
displayName:
en: 'Namespace App Releases View'
zh: '应用实例'
en: 'Namespace App Releases Management'
zh: '应用实例部署升级'
rules:
- apiGroups:
- application.kubesphere.io
Expand Down
4 changes: 4 additions & 0 deletions src/test/ks-core/templates/kubesphere-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ data:
node:
image: {{ template "nodeShell.image" . }}
helmImage: {{ template "helm.image" . }}
{{- if .Values.devMode }}
telemetry:
ksCloudUrl: "https://clouddev.kubesphere.io"
{{- end }}
{{- end }}
15 changes: 14 additions & 1 deletion src/test/ks-core/templates/marketplace-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
apiVersion: v1
stringData:
configuration.yaml: |
{{- if .Values.devMode }}
url: https://clouddev.kubesphere.io
oauth:
clientID: "client-a5cdf64c-7f84-415e-a6b1-8dfbfad493c3"
clientSecret: "66ce75fc-4a87-4f97-9963-92d1a19b137e"
subscription:
syncPeriod: 60m
repository:
url: https://clouddev.kubesphere.io
repoName: marketplace
syncPeriod: 60m
{{- else }}
url: https://kubesphere.cloud
oauth:
clientID: "client-a5cdf64c-7f84-415e-a6b1-8dfbfad493c3"
Expand All @@ -12,11 +24,12 @@ stringData:
url: https://app.kubesphere.cloud
repoName: marketplace
syncPeriod: 60m
{{- end }}
kind: Secret
metadata:
name: marketplace
namespace: kubesphere-system
labels:
config.kubesphere.io/type: marketplace
type: config.kubesphere.io/marketplace
{{ end }}
{{ end }}

0 comments on commit 8f5caf4

Please sign in to comment.