Skip to content

Always render ca.crt and sa.json in objstore secret to allow clearing on upgrade#1256

Merged
ArnobKumarSaha merged 2 commits into
masterfrom
upd-version
May 20, 2026
Merged

Always render ca.crt and sa.json in objstore secret to allow clearing on upgrade#1256
ArnobKumarSaha merged 2 commits into
masterfrom
upd-version

Conversation

@Imtiaz246
Copy link
Copy Markdown
Member

@Imtiaz246 Imtiaz246 commented May 18, 2026

Previously, ca.crt (s3) and sa.json (gcs) were conditionally omitted from the Secret template when their values were empty. This caused helm upgrade to leave stale values in the secret when the fields were removed from values.yaml.

Now both fields are always rendered using | default "" | quote, ensuring that removing a value in values.yaml explicitly overwrites the secret key with an empty string on the next upgrade.

… on upgrade

Previously, ca.crt (s3) and sa.json (gcs) were conditionally omitted
from the Secret template when their values were empty. This caused
helm upgrade to leave stale values in the secret when the fields were
removed from values.yaml.

Now both fields are always rendered using `| default "" | quote`,
ensuring that removing a value in values.yaml explicitly overwrites
the secret key with an empty string on the next upgrade.

Signed-off-by: Imtiaz Uddin <imtiaz@appscode.com>
@Imtiaz246 Imtiaz246 changed the title Always render ca.crt and sa.json in objstore secret to allow clearing… Always render ca.crt and sa.json in objstore secret to allow clearing on upgrade May 18, 2026
@Imtiaz246 Imtiaz246 requested a review from ArnobKumarSaha May 18, 2026 10:42
ArnobKumarSaha
ArnobKumarSaha previously approved these changes May 20, 2026
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
@ArnobKumarSaha ArnobKumarSaha merged commit 88effb3 into master May 20, 2026
2 of 3 checks passed
@ArnobKumarSaha ArnobKumarSaha deleted the upd-version branch May 20, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants