-
Notifications
You must be signed in to change notification settings - Fork 328
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
replicalimits unit tests do not include checks for Scale resources #419
Comments
…ly. Fixes open-policy-agent#419 Signed-off-by: Paul Krizak <[email protected]>
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
poke the bot |
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
The
general/replicalimits
ConstraintTemplate in the library only has unit tests that validate updates to a Deployment resource. It does not check for Scale resources, which get generated when runningkubectl scale
commands.There is also a bug in the Rego because in the event of
kubectl scale deploy <name> --replicas=0
, the Scale resource has an empty spec (soinput.review.object.spec
is empty) and a violation is generated, even if a range allows zero as a valid value.The text was updated successfully, but these errors were encountered: