mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-11-26 19:30:47 +00:00
openclaw 0.2.15: migrate the agent database at pod start
An image upgrade can raise the schema version of the agent database. The Gateway then exits until doctor --fix runs. An init container now runs the safe migrations before each start.
This commit is contained in:
1 parent
2996c59656
commit
baedb075cb
2 files changed
+42
-1
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ description: >-
|
||||
is tracked directly off openclaw/openclaw releases via the annotation below
|
||||
and scripts/update-charts.sh.
|
||||
type: application
|
||||
version: 0.2.14
|
||||
version: 0.2.15
|
||||
appVersion: "2026.10.10"
|
||||
annotations:
|
||||
version-source: github-release:openclaw/openclaw
|
||||
|
||||
@@ -123,6 +123,47 @@ spec:
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
{{- end }}
|
||||
# An image upgrade can raise the schema version of the agent database.
|
||||
# The Gateway then refuses to start until `doctor --fix` migrates it.
|
||||
# The safe migrations run here, before each start, so no manual step is needed.
|
||||
# A failure does not block the start: the Gateway prints the real error.
|
||||
- name: migrate
|
||||
image: {{ $image | quote }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- node /app/dist/index.js doctor --fix --non-interactive || echo "doctor exited with $?"
|
||||
env:
|
||||
- name: HOME
|
||||
value: /home/node
|
||||
- name: OPENCLAW_CONFIG_DIR
|
||||
value: /home/node/.openclaw
|
||||
- name: NODE_ENV
|
||||
value: production
|
||||
{{- if .Values.claudeCli.enabled }}
|
||||
- name: CLAUDE_CONFIG_DIR
|
||||
value: /home/node/.claude
|
||||
{{- end }}
|
||||
{{- with .Values.existingSecret }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.containerSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
{{- range $paths }}
|
||||
- name: data
|
||||
mountPath: /home/node/{{ . }}
|
||||
subPath: {{ . }}
|
||||
{{- end }}
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: {{ $image | quote }}
|
||||
|
||||
Reference in new issue
Block a user