Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions charts/mcp-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)

---

## [0.9.1] - 2025-12-03

### Added
* **Helm Hook Support for Migration Job** - : enable recreation of the migration Job on every deployment
- helm.sh/hook: pre-install,pre-upgrade — ensures the migration Job runs automatically during installs and upgrades
- helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded — removes old migration Jobs to prevent immutable field errors
- Eliminates upgrade failures caused by changes to spec.template in Kubernetes Jobs

### Changed
* **Chart version** - Bumped to 0.9.1 for migration job fix

## [0.9.0] - 2025-11-05

### Added
Expand Down
2 changes: 1 addition & 1 deletion charts/mcp-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type: application
# * appVersion - upstream application version; shown in UIs but not
# used for upgrade logic.
# --------------------------------------------------------------------
version: 0.9.0
version: 0.9.1
appVersion: "0.9.0"

# Icon shown by registries / dashboards (must be an http(s) URL).
Expand Down
8 changes: 5 additions & 3 deletions charts/mcp-stack/templates/job-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ metadata:
labels:
{{- include "mcp-stack.labels" . | nindent 4 }}
app.kubernetes.io/component: migration
annotations:
# Run this Job before install/upgrade
"helm.sh/hook": pre-install,pre-upgrade
# Delete old Job before new one and clean up succeeded ones
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
# Job configuration
backoffLimit: {{ .Values.migration.backoffLimit }}
Expand Down Expand Up @@ -61,16 +66,13 @@ spec:
secretKeyRef:
name: {{ include "mcp-stack.postgresSecretName" . | trim }}
key: POSTGRES_PASSWORD

# ---------- DERIVED URLS ----------
- name: DATABASE_URL
value: >-
postgresql://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT)/$(POSTGRES_DB)

# ---------- LOGGING ----------
- name: LOG_LEVEL
value: "INFO"

# Resource limits
resources:
{{- toYaml .Values.migration.resources | nindent 12 }}
Expand Down
Loading