Skip to content

Commit

Permalink
Merge pull request #373 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 Mar 21, 2024
2 parents ca8878c + 99550e9 commit 683becc
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 19 deletions.
10 changes: 10 additions & 0 deletions src/test/ks-core/files/extensions.customresourcefilters.rego
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ match if {
enabledStatusMatch
}

match if {
installStatusSearch
notInstalledStatusMatch
}

fuzzySearch if "q" == input.filter.field

installStatusSearch if "status" == input.filter.field
Expand Down Expand Up @@ -88,3 +93,8 @@ enabledStatusMatch if {
input.filter.value == "false"
not input.object.status.enabled
}

notInstalledStatusMatch if {
input.filter.value == "notInstalled"
not alreadyInstalled
}
1 change: 1 addition & 0 deletions src/test/ks-core/templates/globalroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ rules:
- 'apps'
- 'categories'
- 'apps/versions'
- 'applications'
verbs:
- get
- list
Expand Down
2 changes: 2 additions & 0 deletions src/test/ks-core/templates/ks-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ spec:
labels:
app: ks-controller-manager
tier: backend
annotations:
kubesphere.io/update-time: {{ dateInZone "2006-01-02T15:05:05Z" (now) "UTC"| quote }}
spec:
serviceAccountName: {{ template "ks-core.serviceAccountName" . }}
{{- include "controller.imagePullSecrets" . | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: batch/v1
kind: Job
metadata:
name: "{{ .Release.Name }}-post-install"
name: "{{ .Release.Name }}-post-patch-system-ns"
annotations:
"helm.sh/hook": post-install
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded,hook-failed
spec:
Expand All @@ -12,7 +12,7 @@ spec:
restartPolicy: Never
serviceAccountName: {{ include "ks-core.serviceAccountName" . }}
containers:
- name: post-install-job
- name: post-patch-system-ns
image: {{ template "kubectl.image" . }}
command:
- /bin/bash
Expand Down
2 changes: 1 addition & 1 deletion src/test/ks-core/templates/post-upgrade-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
volumes:
- name: config
configMap:
name: ks-upgrade-config
name: {{ .Release.Name }}-upgrade-config
defaultMode: 420
{{- if not .Values.upgrade.storage.s3.endpoint }}
- name: data
Expand Down
4 changes: 2 additions & 2 deletions src/test/ks-core/templates/pre-upgrade-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: ks-upgrade-config
name: {{ .Release.Name }}-upgrade-config
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook": pre-upgrade
Expand Down Expand Up @@ -75,7 +75,7 @@ spec:
volumes:
- name: config
configMap:
name: ks-upgrade-config
name: {{ .Release.Name }}-upgrade-config
defaultMode: 420
{{- if not .Values.upgrade.storage.s3.endpoint }}
- name: data
Expand Down
4 changes: 4 additions & 0 deletions src/test/ks-core/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ kind: ValidatingWebhookConfiguration
metadata:
name: extensions.kubesphere.io
webhooks:
{{- if eq (include "role" .) "host" }}
- admissionReviewVersions:
- v1
clientConfig:
Expand Down Expand Up @@ -122,6 +123,7 @@ webhooks:
scope: '*'
sideEffects: None
timeoutSeconds: 30
{{- end }}
- admissionReviewVersions:
- v1
clientConfig:
Expand Down Expand Up @@ -214,6 +216,7 @@ webhooks:
sideEffects: None
timeoutSeconds: 30

{{- if eq (include "role" .) "host" }}
---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
Expand Down Expand Up @@ -247,6 +250,7 @@ webhooks:
scope: '*'
sideEffects: None
timeoutSeconds: 30
{{- end }}

---

Expand Down
25 changes: 12 additions & 13 deletions src/test/ks-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ upgrade:
accessMode: ReadWriteOnce
size: 5Gi
jobs:
core:
disabled: false
priority: 10000
network:
disabled: false
priority: 100
Expand Down Expand Up @@ -530,22 +533,15 @@ upgrade:
configMapNamespace: "kubesphere-system"
chartsPath: ""
installationMode: HostOnly
clusterScheduling:
placement:
clusters:
- host
clusterSelector:
matchLabels:
node-role.kubernetes.io/master: ""

dmp:
disabled: false
priority: 100
extensionRef:
name: "dmp"
version: "2.0.0"
version: "2.1.0"
namespace: "extension-dmp"
configMap: "extension-dmp-2.0.0-chart"
configMap: "extension-dmp-2.1.0-chart"
configMapKey: "chart.tgz"
configMapNamespace: "kubesphere-system"
chartsPath: ""
Expand All @@ -556,11 +552,14 @@ upgrade:
matchLabels:
kubesphere.io/managed: "true"
config: |
global:
imageRegistry: docker.io
imagePullSecrets: [ ]
extension:
frontend:
image:
repository: registry.cn-beijing.aliyuncs.com/kse/dmp-frontend
tag: "2.0.0"
repository: radondb/dmp-frontend
tag: "2.1.0"
resources:
limits:
cpu: 200m
Expand All @@ -571,8 +570,8 @@ upgrade:
agent:
dmp:
image:
repository: registry.cn-beijing.aliyuncs.com/kse/dmp
tag: "2.0.0"
repository: radondb/dmp
tag: "2.1.0"
resources:
limits:
cpu: 200m
Expand Down

0 comments on commit 683becc

Please sign in to comment.