Skip to content

Add support for v1.APIVersions in KubernetesClient #6066

@rohanKanojia

Description

@rohanKanojia

Is your task related to a problem? Please describe

I bumped into this issue while writing tests for eclipse-jkube/jkube#2663 where I use KubernetesMockServer via Helm CLI.

Kubernetes APIServer provides an endpoint to allow clients to discover the API at /api which is the root path of the legacy v1 API.

I'm not able to see any support in KubernetesClient for achieving this. APIVersions object is also absent from Kubernetes Model

Describe the solution you'd like

  • APIVersions resource is added to Kubenetes Model
  • Support for /api endpoint is added to KubernetesClient DSL

Describe alternatives you've considered

I'm using raw JSON string at the moment as a workaround that's a bit ugly.

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions