StatCan / gatekeeper-policies

Policies that are to be enforced by GateKeeper for the Cloud Native Platform
Other
16 stars 12 forks source link

feat(general/restrict-prioriy-classes): add a policy to allow for the restriction of priority classes. #51

Closed justbert closed 1 year ago

justbert commented 1 year ago

Thanks for the review, @MichaelPatsula! I think it's a good thought but in this case it should be unnecessary since the policy will fail if there is nothing defined in the priorityClassName field. I added a test to validate that. :)

justbert commented 1 year ago

I also added an extra comment on the rego to help explicitly explain what the policy should run against.