fix: validate LowNodeUtilization metrics source#1877
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @immanuwell! |
|
Hi @immanuwell. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
@immanuwell: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Description
Tiny config validation fix, nothing fancy.
LowNodeUtilizationacceptedmetricsUtilization: {}or a typo'dmetricsUtilization.source. That can come straight from policy YAML, sincesourceis just a string; no cloud quota / API ceiling blocks it. Later the plugin trips at runtime withmetrics source is emptyorunrecognized metrics source.This catches that during policy validation instead. Legacy
metricsServer: truestays valid.Reproduce
Before the fix, the new table cases returned
nil:go test ./pkg/framework/plugins/nodeutilization -run TestValidateLowNodeUtilizationPluginConfig -count=1Now they pass, and the wider package suite is clean:
go test ./pkg/...Related search: #1658 and #1840 are in the same metrics config area, but this does not directly close them.
Checklist