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

KEP-3488: Promote ValidatingAdmissionPolicy to Beta #118644

Conversation

alexzielenski
Copy link
Contributor

@alexzielenski alexzielenski commented Jun 13, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:

Prerequisites:

Graduation Criteria from KEP:

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Promoted API groups `ValidatingAdmissionPolicy` and `ValidatingAdmissionPolicyBinding` to `v1beta1`. 

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

- [KEP]: https://github.com/kubernetes/enhancements/issues/3488

/sig api-machinery
/cc @cici37 @jpbetz

@k8s-ci-robot k8s-ci-robot requested a review from cici37 June 13, 2023 22:15
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jun 13, 2023
@k8s-ci-robot k8s-ci-robot requested a review from jpbetz June 13, 2023 22:15
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. kind/feature Categorizes issue or PR as related to a new feature. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/apiserver needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. area/code-generation kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jun 13, 2023
@alexzielenski alexzielenski changed the title [WIP] ValidatingAdmissionPolicy v1beta1 types [WIP] ValidatingAdmissionPolicy v1beta1 types and controller update Jun 13, 2023
@k8s-ci-robot k8s-ci-robot added area/test sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jun 23, 2023
Copy link
Contributor

@jpbetz jpbetz left a comment

Choose a reason for hiding this comment

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

@alexzielenski This looks ready for API review to me. Would you set that up?

pkg/apis/admissionregistration/types.go Outdated Show resolved Hide resolved
pkg/apis/admissionregistration/types.go Outdated Show resolved Hide resolved
pkg/apis/admissionregistration/types.go Outdated Show resolved Hide resolved
@alexzielenski
Copy link
Contributor Author

alexzielenski commented Jun 26, 2023

/label api-review

/cc @deads2k
for API review

Still adding tests and tuning implementation. Expecting no further changes to types/global API code (excepting documentation and other feedback).

@k8s-ci-robot k8s-ci-robot added the api-review Categorizes an issue or PR as actively needing an API review. label Jun 26, 2023
@alexzielenski alexzielenski changed the title [WIP] ValidatingAdmissionPolicy v1beta1 types and controller update ValidatingAdmissionPolicy v1beta1 types and controller update Jun 26, 2023
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 26, 2023
@alexzielenski
Copy link
Contributor Author

/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 27, 2023
Copy link
Contributor

@deads2k deads2k left a comment

Choose a reason for hiding this comment

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

I did not finish reviewing all the controller changes. Can we separate the "api, defaulting, conversion, validation" from the controller and admission changes? I know there are behavioral changes required, but freeing up the API first broadens reviewers.

pkg/apis/admissionregistration/validation/validation.go Outdated Show resolved Hide resolved
pkg/apis/admissionregistration/validation/validation.go Outdated Show resolved Hide resolved
@alexzielenski alexzielenski force-pushed the apiserver/policy/namespaceParamRef branch 2 times, most recently from 8d0206a to bd581b1 Compare June 29, 2023 22:33
@deads2k
Copy link
Contributor

deads2k commented Jul 21, 2023

API and impl changes look good. The tests need fixing before merge and the tests need to be added for the beta.

/approve

/assign @jpbetz @cici37
for lgtm

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 21, 2023
@cici37
Copy link
Contributor

cici37 commented Jul 21, 2023

Thank you! @alexzielenski Please update following when you got time.

  • Revert the feature gate change in this PR
  • Fix the accidentally touch for version in match_test

Thank you! ^^

v1alpha -> v1beta

fill in DenyAction where there is no ParameterNotFoundAction
@alexzielenski alexzielenski force-pushed the apiserver/policy/namespaceParamRef branch from e73fbb2 to c4cd92a Compare July 21, 2023 20:41
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexzielenski, deads2k

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@alexzielenski alexzielenski force-pushed the apiserver/policy/namespaceParamRef branch from c4cd92a to d647958 Compare July 21, 2023 20:56
@cici37
Copy link
Contributor

cici37 commented Jul 21, 2023

/lgtm
Thank you!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 21, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 6f3cbba547c06b8dfe7f1f0c2fcc03a6f3ea0726

@cici37
Copy link
Contributor

cici37 commented Jul 21, 2023

/retest

@k8s-ci-robot
Copy link
Contributor

@alexzielenski: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-e2e-gce-cos-alpha-features e73fbb2 link false /test pull-kubernetes-e2e-gce-cos-alpha-features
pull-kubernetes-e2e-gce d647958 link unknown /test pull-kubernetes-e2e-gce

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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/test-infra repository. I understand the commands that are listed here.

@alexzielenski
Copy link
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot merged commit 18f8cb8 into kubernetes:master Jul 22, 2023
12 of 13 checks passed
@sftim
Copy link
Contributor

sftim commented Jul 25, 2023

The KEP link for the changelog should be to k/enhancements, not - https://github.com/cici37/enhancements/

@sftim
Copy link
Contributor

sftim commented Jul 25, 2023

Changelog suggestion:

- Promoted validating admission policies to beta
- Promoted API groups `ValidatingAdmissionPolicy` and `ValidatingAdmissionPolicyBinding` to `v1beta1`. 

@cici37
Copy link
Contributor

cici37 commented Jul 25, 2023

@sftim Thank you for the suggestion! I have updated the PR description for the KEP link and updated the release note section as well. Note that we promote the feature gate in another PR(#119409) hence I will only add the last API promotion info into the changelog of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review Categorizes an issue or PR as actively needing an API review. approved Indicates a PR has been approved by an approver from all required OWNERS files. area/apiserver area/code-generation area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/apps Categorizes an issue or PR as relevant to SIG Apps. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: API review completed, 1.28
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

8 participants