-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Add openapi/v2 endpoint #333
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
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
/test all |
@akrejcir: No presubmit jobs available for kubevirt/vm-console-proxy@main In response to this:
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-sigs/prow repository. |
/retest |
Holding until I verify that this fixes the bug. /hold |
152ecc1
to
6c42d7a
Compare
/unhold |
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.
/approve
From what I can tell it looks good
@@ -12,6 +12,7 @@ require ( | |||
k8s.io/api v0.31.0 | |||
k8s.io/apimachinery v0.32.3 | |||
k8s.io/client-go v0.31.0 | |||
k8s.io/kube-openapi v0.31.0 |
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.
side note: How is there v0.31.0
of this dependency but no version for openapi-gen?
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.
There is no tagged version of k8s.io/kube-openapi
, the repo has no tags: https://github.com/kubernetes/kube-openapi
This v0.31.0
, is an invalid version, that has been propagated from kubevirt client-go: https://github.com/kubevirt/client-go/blob/v1.5.0/go.mod#L25
Then later in this go.mod
we set it to a commit version:
replace (
// This is needed by kubevirt.io/client-go
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20240430033511-f0e62f92d13f
)
We should sometime fix the dependencies of kubevirt/client-go.
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.
kube-openapi
has an issue for tagged releases, that no one is working on in a long time:
https://github.com/kubernetes/kube-openapi/issues/383
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.
We should sometime fix the dependencies of kubevirt/client-go
kubevirt/kubevirt#14399 FWIW I started but didn't finish this.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 0xFelix 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 |
This endpoint is accessed by the kubernetes API aggregator. Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
6c42d7a
to
ae47d22
Compare
Thanks @akrejcir! |
What this PR does / why we need it:
Added
openapi/v2
endpoint that is accessed by the kubernetes API aggregator.Which issue(s) this PR fixes:
Fixes: https://issues.redhat.com/browse/CNV-59744
Release note: