Skip to content
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

fix: api groups in constraint 1.22 #416

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

albert-zhong
Copy link
Contributor

What this PR does / why we need it:
The example for the verifydeprecatedapi-1.22 constraint should say "scheduling.k8s.io" instead of "scheduling.k8s.io/v1beta1" for the apiGroup match kind. Otherwise, the constraint will not properly match the deprecated API resources.

Which issue(s) does this PR fix (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

Signed-off-by: Albert Zhong <albert.zhong@databricks.com>
Signed-off-by: Albert Zhong <albert.zhong@databricks.com>
@albert-zhong
Copy link
Contributor Author

Hi @nilekhc , could you take a quick look at this when you have the time? Thanks!

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM

Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @albert-zhong!

@apeabody apeabody changed the title fix api groups in constraint 1.22 fix: api groups in constraint 1.22 Oct 16, 2023
@sozercan sozercan merged commit 213cc3c into open-policy-agent:master Oct 16, 2023
15 checks passed
skaven81 pushed a commit to skaven81/gatekeeper-library that referenced this pull request Oct 26, 2023
* fix api groups in constraint 1.22

Signed-off-by: Albert Zhong <albert.zhong@databricks.com>

* run make generate generate-website-docs generate-artifacthub-artifacts

Signed-off-by: Albert Zhong <albert.zhong@databricks.com>

---------

Signed-off-by: Albert Zhong <albert.zhong@databricks.com>
Signed-off-by: Paul Krizak <paul.krizak@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants