-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
Make APIService.spec.service optional in the openapi v2 spec #85728
Make APIService.spec.service optional in the openapi v2 spec #85728
Conversation
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1/types.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/v1/types.go
Outdated
Show resolved
Hide resolved
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.
kubernetes/staging/src/k8s.io/kube-aggregator/pkg/apis/apiregistration/types.go
Lines 47 to 51 in 1d343c8
// Service is a reference to the service for this API server. It must communicate | |
// on port 443 | |
// If the Service is nil, that means the handling for the API groupversion is handled locally on this server. | |
// The call will simply delegate to the normal handler chain to be fulfilled. | |
Service *ServiceReference |
plz also add openapi marker // +optional
here
90aaf8d
to
e911833
Compare
@yue9944882 i just updated according to your review. please take another look. thanks |
/lgtm for another review and approval |
/approve Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lavalamp, prksu 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 |
/sig api-machinery |
* Gets raw data from Kubernetes and avoids OpenAPI deserialization which fails due to kubernetes-client/gen#52, even though [this fix](kubernetes/kubernetes#85728) exists, the Python Kubernetes library is still not compatible with it. More information at kubernetes-client/python#1174.
* Gets raw data from Kubernetes and avoids OpenAPI deserialization which fails due to kubernetes-client/gen#52, even though [this fix](kubernetes/kubernetes#85728) exists, the Python Kubernetes library is still not compatible with it. More information at kubernetes-client/python#1174.
What type of PR is this?
/kind bug
What this PR does / why we need it:
make APIService.spec.service optional in openapi v2 spec.
this PR fixes failing updates on a "Local" apiservice (unless disabling the client-side validation)
Which issue(s) this PR fixes:
Fixes #84184
Special notes for your reviewer:
/cc @yue9944882
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: