mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 11:33:17 +00:00
fix(home-assistant-mcp): use RollingUpdate and allow image.tag override
Recreate strategy caused full downtime when a chart appVersion bump referenced an unpublished image tag. Switch to RollingUpdate with maxUnavailable=0 so the old pod stays up until the new one is Running, and add an image.tag override so consumers can pin to a working tag when appVersion races ahead of the published image. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: home-assistant-mcp
|
name: home-assistant-mcp
|
||||||
description: Home Assistant MCP server Helm chart
|
description: Home Assistant MCP server Helm chart
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.3
|
version: 0.3.0
|
||||||
appVersion: "7.4.1"
|
appVersion: "7.4.1"
|
||||||
annotations:
|
annotations:
|
||||||
version-source: github-release:homeassistant-ai/ha-mcp
|
version-source: github-release:homeassistant-ai/ha-mcp
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
|
maxSurge: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ .Release.Name }}
|
app: {{ .Release.Name }}
|
||||||
@@ -33,7 +36,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
{{- with .Values.command }}
|
{{- with .Values.command }}
|
||||||
command:
|
command:
|
||||||
|
|||||||
Reference in New Issue
Block a user