Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(loadSpec): change the endpoint called by loadSpec (#356)
According to this Kubernetes doc: https://kubernetes.io/docs/concepts/overview/kubernetes-api/#openapi-and-swagger-definitions The `/swagger*` endpoints have been deprecated starting with v1.10. This commit changes `loadSpec` to address this: 1. Initially attempts to contact `/openapi/v2` with `Accept: application/json` in order to get the swagger file via the new URL 2. If that fails with a 404, attempts to contact `swagger.json` to support clusters which do not have the new endpoint
- Loading branch information