-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VPA: Missing Flag Validation in VPA e2e Tests #7723
Comments
While trying to add the test, can find that even the For testing all the flags, we would need lots of deployment config, repeating the ginkgo test will be too expensive in that case. While some of the flags dont even need ginkgo, just simply deploy and some kubectl. Im thinking of adding another kind of test called |
@phuhung273, I agree. Testing some flags this way sounds better and more efficient, like integration tests. Can you create a PR for one flag so we can take a look? (Though for some flags, we will still need to extend our e2e testing.) |
/triage accepted |
@omerap12: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions 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. |
PR created for |
/area vertical-pod-autoscaler
The VPA components (e.g., recommender, updater, and admission controller) have various configurable flags. For instance, some of the recommender's flags can be found here.
However, the current VPA end-to-end (e2e) tests do not validate the behavior of these flags. Instead, they rely solely on the default flag values without testing any custom configurations. Specifically, the e2e tests deploy VPA components using a predefined deployment script (deploy-for-e2e.sh), which, for example, references the following deployment configuration for the recommender:
The above configuration, as seen in the recommender deployment template, does not pass any flags to the recommender component.
To ensure comprehensive testing and avoid potential issues, the e2e tests should:
This enhancement would help identify and prevent regressions, such as this pr, where the namespace filtering behavior was unintentionally changed from a whitelist (vpaObjectNamespace) to a blacklist (ignoredVPANamespaces).
The text was updated successfully, but these errors were encountered: