Skip to content

fix(argo-cd): quote VPA updateMode to prevent YAML boolean coercion#3790

Merged
tico24 merged 1 commit intoargoproj:mainfrom
snigdhasambitak:fix/vpa-updatemode-quoting
Mar 19, 2026
Merged

fix(argo-cd): quote VPA updateMode to prevent YAML boolean coercion#3790
tico24 merged 1 commit intoargoproj:mainfrom
snigdhasambitak:fix/vpa-updatemode-quoting

Conversation

@snigdhasambitak
Copy link
Copy Markdown
Contributor

@snigdhasambitak snigdhasambitak commented Mar 19, 2026

Summary

  • Quote updateMode in the VPA template to prevent YAML from interpreting Off as boolean false
  • Fix annnotaions typo (3 n's) to annotations

Problem

charts/argo-cd/templates/argocd-application-controller/vpa.yaml line 26 renders updateMode without quoting:

updateMode: {{ .Values.controller.vpa.updateMode }}

When set to "Off", Helm outputs updateMode: Off which YAML interprets as boolean false. The valid VPA updateMode values are strings: Off, Initial, Recreate, Auto.

Fix

updateMode: {{ .Values.controller.vpa.updateMode | quote }}

Fixes #3789

Checklist

  • I have bumped the chart version according to versioning (9.4.14 -> 9.4.15)
  • I have updated the documentation according to documentation (ran helm-docs, no README changes needed)
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • I have created a separate pull request for each chart according to pull requests
  • My build is green (troubleshooting builds)

@tico24
Copy link
Copy Markdown
Member

tico24 commented Mar 19, 2026

can you re-add the other checklist items and then do them please?

@tico24 tico24 marked this pull request as draft March 19, 2026 13:54
@snigdhasambitak snigdhasambitak marked this pull request as ready for review March 19, 2026 13:55
@snigdhasambitak snigdhasambitak force-pushed the fix/vpa-updatemode-quoting branch from 5297406 to fe95a3c Compare March 19, 2026 13:57
@github-actions github-actions Bot added size/S and removed size/XS labels Mar 19, 2026
Comment thread charts/argo-cd/Chart.yaml Outdated
artifacthub.io/changes: |
- kind: fixed
description: Omit runAsUser for dex when deployed on OpenShift
description: Quote VPA updateMode to prevent YAML boolean coercion of Off to false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to remove the old entry.

Copy link
Copy Markdown
Contributor Author

@snigdhasambitak snigdhasambitak Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old changelog entry (Omit runAsUser for dex when deployed on OpenShift) has been replaced

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no it hasn't. you have appended to it.

Copy link
Copy Markdown
Contributor Author

@snigdhasambitak snigdhasambitak Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.. combined into a single changelog entry

@snigdhasambitak snigdhasambitak requested a review from tico24 March 19, 2026 14:02
@tico24 tico24 marked this pull request as draft March 19, 2026 14:03
@tico24 tico24 marked this pull request as draft March 19, 2026 14:03
@snigdhasambitak snigdhasambitak force-pushed the fix/vpa-updatemode-quoting branch from fe95a3c to d64e486 Compare March 19, 2026 14:06
@github-actions github-actions Bot added size/XS and removed size/S labels Mar 19, 2026
@snigdhasambitak snigdhasambitak marked this pull request as ready for review March 19, 2026 14:08
@snigdhasambitak snigdhasambitak force-pushed the fix/vpa-updatemode-quoting branch from d64e486 to c8cb50f Compare March 19, 2026 14:12
YAML interprets unquoted `Off` as boolean `false`. Add `| quote` filter
to ensure updateMode is rendered as a string. Also fix `annnotaions`
typo in the annotations key.

Fixes argoproj#3789

Signed-off-by: Snigdha Aryakumar <snigdha.sambit.ak@gmail.com>
@snigdhasambitak snigdhasambitak force-pushed the fix/vpa-updatemode-quoting branch from c8cb50f to eb9923b Compare March 19, 2026 14:13
@tico24 tico24 enabled auto-merge (squash) March 19, 2026 14:24
@tico24 tico24 merged commit 7b3c8fb into argoproj:main Mar 19, 2026
7 checks passed
xavier-re pushed a commit to xavier-re/argo-helm-xr that referenced this pull request Apr 8, 2026
…rgoproj#3790)

YAML interprets unquoted `Off` as boolean `false`. Add `| quote` filter
to ensure updateMode is rendered as a string. Also fix `annnotaions`
typo in the annotations key.

Fixes argoproj#3789

Signed-off-by: Snigdha Aryakumar <snigdha.sambit.ak@gmail.com>
Signed-off-by: Xavier Renaut <xavier.renaut@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

argo-cd: VPA updateMode rendered as boolean false instead of string "Off"

3 participants