kyverno / policies

Kyverno policies for security and best practices
Apache License 2.0
307 stars 217 forks source link

[Sample] policy to check if the resources of an object are within the upperbound and lowerbound as suggested by vpa recommender #948

Open swastik959 opened 3 months ago

swastik959 commented 3 months ago

Problem Statement

policy to check if the resources of an object are within the upperbound and lowerbound as suggested by vpa recommender if that is not case a policy violation along with a report will be generated

Solution Description

policy to fetch the lowerbound and upperbound from vpa recommender and compare it with the specified resource in the object

Example "Good" Resource

No response

Example "Bad" Resource

No response

Other Comments

No response

Slack discussion

No response

Troubleshooting

swastik959 commented 3 months ago

/assign