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

APIService apiregistration.k8s.io/v1 spec at unexpected URL #2

Open
jboxman opened this issue Nov 30, 2022 · 0 comments
Open

APIService apiregistration.k8s.io/v1 spec at unexpected URL #2

jboxman opened this issue Nov 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jboxman
Copy link
Owner

jboxman commented Nov 30, 2022

For some reason, this returns a 404, but oc explain gets the OpenAPI spec. It probably needs an exception.

oc explain -v7 apiservice | grep http
I1129 20:09:01.829070   26061 round_trippers.go:422] GET https://api.crc.testing:6443/openapi/v2?timeout=32s

So the API server isn't honest about where this OpenAPI spec files; It isn't in the apiregistration.k8s.io/v1 group in this case.

oc explain apiservice
KIND:     APIService
VERSION:  apiregistration.k8s.io/v1

DESCRIPTION:
     APIService represents a server for a particular GroupVersion. Name must be
     "version.group".

FIELDS:
   apiVersion	<string>
     APIVersion defines the versioned schema of this representation of an
     object. Servers should convert recognized schemas to the latest internal
     value, and may reject unrecognized values. More info:
     https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

   kind	<string>
     Kind is a string value representing the REST resource this object
     represents. Servers may infer this from the endpoint the client submits
     requests to. Cannot be updated. In CamelCase. More info:
     https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

   metadata	<Object>
     Standard object's metadata. More info:
     https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

   spec	<Object>
     Spec contains information for locating and communicating with a server

   status	<Object>
     Status contains derived information about an API server
@jboxman jboxman added the bug Something isn't working label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant