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

Make APIService.spec.service optional in the openapi v2 spec #85728

Merged

Conversation

prksu
Copy link
Contributor

@prksu prksu commented Nov 28, 2019

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?:

NONE

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


@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels Nov 28, 2019
@fejta-bot
Copy link

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.

Copy link
Member

@yue9944882 yue9944882 left a comment

Choose a reason for hiding this comment

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

// 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

@prksu prksu force-pushed the make-apiservice.spec.service-optional branch from 90aaf8d to e911833 Compare December 2, 2019 10:52
@prksu
Copy link
Contributor Author

prksu commented Dec 2, 2019

@yue9944882 i just updated according to your review. please take another look. thanks

@yue9944882
Copy link
Member

/lgtm
/assign @lavalamp

for another review and approval

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 3, 2019
@lavalamp
Copy link
Member

lavalamp commented Dec 3, 2019

/approve

Thanks!

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2019
@prksu
Copy link
Contributor Author

prksu commented Dec 4, 2019

/sig api-machinery
/priority backlog

@k8s-ci-robot k8s-ci-robot added sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. priority/backlog Higher priority than priority/awaiting-more-evidence. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Dec 4, 2019
@k8s-ci-robot k8s-ci-robot merged commit e28ae9c into kubernetes:master Dec 4, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Dec 4, 2019
@prksu prksu deleted the make-apiservice.spec.service-optional branch December 4, 2019 07:19
diegodelemos pushed a commit to diegodelemos/reana-commons that referenced this pull request Jul 3, 2020
* 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.
diegodelemos pushed a commit to diegodelemos/reana-commons that referenced this pull request Jul 3, 2020
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. 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/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

APIService.spec.service should not be marked required in the openapi v2 spec
5 participants