Skip to content

Fix VPA updateMode YAML parsing by adding quotes#2170

Open
DaStru wants to merge 2 commits intoopen-telemetry:mainfrom
DaStru:fix/vpa-updatemode-quotes
Open

Fix VPA updateMode YAML parsing by adding quotes#2170
DaStru wants to merge 2 commits intoopen-telemetry:mainfrom
DaStru:fix/vpa-updatemode-quotes

Conversation

@DaStru
Copy link
Copy Markdown

@DaStru DaStru commented Apr 30, 2026

The VPA templates render updateMode without quotes, causing it to be interpreted as a boolean in YAML 1.1. This breaks deployments on clusters with strict VPA webhook validation (like GKE) with the error:

admission webhook "gke-vpa.k8s.io" denied the request: json: cannot unmarshal bool into Go struct field PodUpdatePolicy.spec.updatePolicy.updateMode of type v1.UpdateMode

The issue occurs when users set updateMode: "Off" in values - it gets rendered as unquoted updateMode: Off, which YAML interprets as the boolean false. The VPA API expects a string enum value.

This fix adds the | quote Helm filter to ensure the value is always rendered as a properly quoted string.

@DaStru DaStru requested review from a team, Allex1 and jvoravong as code owners April 30, 2026 10:01
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Apr 30, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@DaStru DaStru changed the title Fix VPA updateMode YAML parsing by adding quotes#315 Fix VPA updateMode YAML parsing by adding quotes May 1, 2026
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.

1 participant