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
Move test/e2e use to v1 APIs #78614
Move test/e2e use to v1 APIs #78614
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt 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 |
/retest |
2 similar comments
/retest |
/retest |
6748761
to
f0f930c
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks for doing this.
@@ -1,4 +1,4 @@ | |||
apiVersion: apiregistration.k8s.io/v1beta1 | |||
apiVersion: apiregistration.k8s.io/v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -7,7 +7,7 @@ metadata: | |||
addonmanager.kubernetes.io/mode: Reconcile | |||
--- | |||
kind: ClusterRoleBinding | |||
apiVersion: rbac.authorization.k8s.io/v1beta1 | |||
apiVersion: rbac.authorization.k8s.io/v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're here can we bring test/e2e into consistency as far as api imports? Noted one in a review comment, there other is:
test/e2e/auth/certificates.go
25: "k8s.io/api/certificates/v1beta1"
There are lots of other imports of "k8s.io/api/core/v1"
instead of the v1 "k8s.io/api/core/v1"
style you have going here, but those seem too equivalent to bother noting here.
(found via ag '^[ \t]*\"[.a-z0-9/]*v1[a-z0-9]*\"' test/e2e
)
@@ -25,7 +25,7 @@ import ( | |||
"k8s.io/api/admissionregistration/v1beta1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while we're here, admissionregistrationv1beta1
?
f0f930c
to
8229af3
Compare
I'd prefer a no-op import rename be separate if you don't mind |
/priority important-soon
fair enough /lgtm |
/remove-sig api-machinery |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Many of the APIs we use for e2e setup have graduated to v1. Switch to the v1 APIs.
Which issue(s) this PR fixes:
xref #78613
Does this PR introduce a user-facing change?:
/cc @oomichi
/area conformance