Skip to content

fix(operator): use toYaml for VPA controlledResources#2144

Merged
dmitryax merged 2 commits into
open-telemetry:mainfrom
LaikaN57:fix/operator-vpa-controlled-resources-toyaml
Apr 11, 2026
Merged

fix(operator): use toYaml for VPA controlledResources#2144
dmitryax merged 2 commits into
open-telemetry:mainfrom
LaikaN57:fix/operator-vpa-controlled-resources-toyaml

Conversation

@LaikaN57
Copy link
Copy Markdown
Contributor

@LaikaN57 LaikaN57 commented Apr 10, 2026

Summary

  • controlledResources in the VPA template was rendered inline without toYaml, producing invalid YAML output (e.g. controlledResources: [cpu memory] instead of a proper YAML list)
  • This caused the VPA controller to fail with:
    E0410 23:03:16.284497       1 types.go:131] "Cannot translate resource name" resourceName="cpu memory"
    
  • Use toYaml | nindent to match the pattern used by the other fields (recommenders, maxAllowed, minAllowed) in the same template

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Apr 10, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

controlledResources was rendered inline without toYaml, producing
invalid YAML output (e.g. `[cpu memory]` instead of a proper list).
Use toYaml | nindent to match the pattern used by the other fields
in the same template.
@LaikaN57 LaikaN57 force-pushed the fix/operator-vpa-controlled-resources-toyaml branch from 9c1ae43 to 7915f11 Compare April 10, 2026 23:32
@LaikaN57 LaikaN57 marked this pull request as ready for review April 10, 2026 23:33
@LaikaN57 LaikaN57 requested review from a team, Allex1 and jvoravong as code owners April 10, 2026 23:33
@dmitryax
Copy link
Copy Markdown
Member

@LaikaN57 Thanks for the fix. Please bump the chart's version

@LaikaN57
Copy link
Copy Markdown
Contributor Author

LaikaN57 commented Apr 10, 2026

@LaikaN57 Thanks for the fix. Please bump the chart's version

@dmitryax done ✅

@LaikaN57 LaikaN57 closed this Apr 10, 2026
@LaikaN57 LaikaN57 reopened this Apr 10, 2026
@dmitryax dmitryax merged commit eb3cf9a into open-telemetry:main Apr 11, 2026
5 checks passed
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