From e020d4c50dfad59302d74d2c87b57fc07e57be79 Mon Sep 17 00:00:00 2001 From: sHa Date: Sun, 3 May 2026 11:39:14 +0300 Subject: [PATCH] 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 --- home-assistant-mcp/Chart.yaml | 2 +- home-assistant-mcp/templates/deployment.yaml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/home-assistant-mcp/Chart.yaml b/home-assistant-mcp/Chart.yaml index e60d915..2f3dacb 100644 --- a/home-assistant-mcp/Chart.yaml +++ b/home-assistant-mcp/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: home-assistant-mcp description: Home Assistant MCP server Helm chart type: application -version: 0.2.3 +version: 0.3.0 appVersion: "7.4.1" annotations: version-source: github-release:homeassistant-ai/ha-mcp diff --git a/home-assistant-mcp/templates/deployment.yaml b/home-assistant-mcp/templates/deployment.yaml index 923de88..09d6859 100644 --- a/home-assistant-mcp/templates/deployment.yaml +++ b/home-assistant-mcp/templates/deployment.yaml @@ -14,7 +14,10 @@ metadata: spec: replicas: 1 strategy: - type: Recreate + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 selector: matchLabels: app: {{ .Release.Name }} @@ -33,7 +36,7 @@ spec: {{- end }} containers: - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} {{- with .Values.command }} command: