Compare commits

...

2 Commits

Author SHA1 Message Date
hongming
11988f71e6 fix: add PersistentVolumeClaim definition to prepare upgrade job (#6483)
Signed-off-by: hongming <coder.scala@gmail.com>
2025-04-18 11:47:23 +08:00
hongming
3ef3a6bc98 Release v4.1.3 (#6459)
Signed-off-by: hongming <coder.scala@gmail.com>
2025-03-24 11:10:23 +08:00
5 changed files with 32 additions and 25 deletions

View File

@@ -7,12 +7,12 @@ 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: 1.1.4-rc.0
version: 1.1.5
# 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
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "v4.1.3-rc.0"
appVersion: "v4.1.3"
dependencies:
- name: redis-ha

View File

@@ -83,4 +83,6 @@ metadata:
spec:
url: https://extensions-museum.{{ .Release.Namespace }}.svc
caBundle: {{ b64enc $ca.Cert }}
status:
lastSyncTime: null
{{end}}

View File

@@ -12,27 +12,6 @@ data:
{{- toYaml .Values.upgrade.config | nindent 4 }}
{{- end }}
---
{{- if not (lookup "v1" "PersistentVolumeClaim" .Release.Namespace .Values.upgrade.persistenceVolume.name) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Values.upgrade.persistenceVolume.name }}
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-1"
labels:
app: ks-upgrade
version: {{ .Chart.AppVersion }}
spec:
accessModes:
- {{ .Values.upgrade.persistenceVolume.accessMode | quote }}
resources:
requests:
storage: {{ .Values.upgrade.persistenceVolume.size | quote }}
storageClassName: {{ .Values.upgrade.persistenceVolume.storageClassName }}
{{- end }}
---
apiVersion: batch/v1
kind: Job

View File

@@ -10,6 +10,27 @@ data:
{{- toYaml .Values.upgrade.config | nindent 4 }}
{{- end }}
{{- if not (lookup "v1" "PersistentVolumeClaim" .Release.Namespace .Values.upgrade.persistenceVolume.name) }}
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Values.upgrade.persistenceVolume.name }}
annotations:
"helm.sh/hook": pre-upgrade
"helm.sh/hook-weight": "-1"
labels:
app: ks-upgrade
version: {{ .Chart.AppVersion }}
spec:
accessModes:
- {{ .Values.upgrade.persistenceVolume.accessMode | quote }}
resources:
requests:
storage: {{ .Values.upgrade.persistenceVolume.size | quote }}
storageClassName: {{ .Values.upgrade.persistenceVolume.storageClassName }}
{{- end }}
---
apiVersion: batch/v1
kind: Job
@@ -40,6 +61,8 @@ spec:
- mountPath: /etc/kubesphere/config-patch.yaml
name: config
subPath: config-patch.yaml
- mountPath: /tmp/ks-upgrade
name: data
{{- end }}
{{- if .Values.upgrade.config }}
volumes:
@@ -47,6 +70,9 @@ spec:
configMap:
name: ks-upgrade-prepare-config
defaultMode: 420
- name: data
persistentVolumeClaim:
claimName: {{ .Values.upgrade.persistenceVolume.name }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -2,7 +2,7 @@
## @param global.tag Global Docker image tag
global:
imageRegistry: docker.io
tag: v4.1.3-rc.0
tag: v4.1.3
imagePullSecrets: []
# - name: "image-pull-secret"
@@ -443,5 +443,5 @@ ksExtensionRepository:
image:
registry: ""
repository: kubesphere/ks-extensions-museum
tag: "1.1.3-rc.0"
tag: "v1.1.5"
pullPolicy: IfNotPresent