Skip to content

Add vpa-controlled-values label/annotation - #891

Open
yeniklas wants to merge 1 commit into
FairwindsOps:masterfrom
yeniklas:feature/vpa-controlled-values
Open

yeniklas wants to merge 1 commit into
FairwindsOps:masterfrom
yeniklas:feature/vpa-controlled-values

Conversation

@yeniklas

Copy link
Copy Markdown

Allow setting the VPA containerPolicies controlledValues (RequestsAndLimits or RequestsOnly) with a simple label or annotation on a namespace or workload, similar to vpa-update-mode, instead of having to write the vpa-resource-policy JSON. The value is applied to all containers and merged with any vpa-resource-policy; explicit values there win.

This PR addresses the issue: #890

Description

What's the goal of this PR?

To provide a user friendly way to change "controlledValues". Our developers would feel more confident to use a clear single purpose label, than to put the whole json template in their charts. This change would provide that.

What changes did you make?

I've added a label to adjust controlledValues, the same way as updateMode.

What alternative solution should we consider, if any?

Another alternative would be to make the resource-policy a central configuration. That might be closer to what the issue refers to. But the new label feels more coherent with the existing behavior. I think both ways could work, and the two variations don't need to be mutually exclusive.

Feel free to tell me if I missed anything.

I ran the tests, including the e2e-tests in Kind.

Full transparency, this change was made with assistance of an AI agent.

Best regards!

Allow setting the VPA containerPolicies controlledValues
(RequestsAndLimits or RequestsOnly) with a simple label or annotation on
a namespace or workload, similar to vpa-update-mode, instead of having to
write the vpa-resource-policy JSON. The value is applied to all containers
and merged with any vpa-resource-policy; explicit values there win.
@CLAassistant

CLAassistant commented Sep 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@yeniklas yeniklas changed the title WIP: Add vpa-controlled-values label/annotation Add vpa-controlled-values label/annotation Sep 24, 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.

2 participants