Fix serviceAccountName re-creating (wiping) existing DB#2220
Merged
crivetimihai merged 1 commit intomainfrom Jan 21, 2026
Merged
Fix serviceAccountName re-creating (wiping) existing DB#2220crivetimihai merged 1 commit intomainfrom
crivetimihai merged 1 commit intomainfrom
Conversation
Signed-off-by: Chris PC <chrispc@li-4dc2bf4c-325d-11b2-a85c-b68e8b1fc307.ibm.com>
8ce34e9 to
ebdc8a2
Compare
crivetimihai
approved these changes
Jan 21, 2026
kcostell06
pushed a commit
to kcostell06/mcp-context-forge
that referenced
this pull request
Feb 24, 2026
Signed-off-by: Chris PC <chrispc@li-4dc2bf4c-325d-11b2-a85c-b68e8b1fc307.ibm.com> Co-authored-by: Chris PC <chrispc@li-4dc2bf4c-325d-11b2-a85c-b68e8b1fc307.ibm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐛 Bug-fix PR
📌 Summary
Fix critical data loss issue in Helm chart caused by unconditional
serviceAccountNameaddition to postgres deployment. The change in commit 5b7888d9 triggers postgres pod recreation.🔁 Reproduction Steps
🐞 Root Cause
PR #1718 added
serviceAccountName: {{ include "mcp-stack.serviceAccountName" . }}unconditionally to all deployments (deployment-postgres.yaml- line 49).The problem:
Why this is a breaking change:
serviceAccount.create: falsemeans the helper returns"default""default", adding the field itself changes the pod spec💡 Fix Description
Make
serviceAccountNameconditional - only add it whenserviceAccount.create: true:Benefits:
create: false(default) won't have field added🧪 Verification
Manual Testing:
persistence.enabled: falseandserviceAccount.create: false✅ Checklist
🔗 Related Issues
Fixes data loss regression introduced in #1718