kubernetes/kube-openapi

Kubernetes OpenAPI spec generation & serving

356

stars

1,565

commits

Go

primary language

Sep 8, 2026

updated

Browse cluster: Kubernetes Core API and Control Plane

README

Kube OpenAPI

This repo is the home for Kubernetes OpenAPI discovery spec generation. The goal is to support a subset of OpenAPI features to satisfy kubernetes use-cases but implement that subset with little to no assumption about the structure of the code or routes. Thus, there should be no kubernetes specific code in this repo.

There are two main parts:

  • A model generator that goes through .go files, find and generate model definitions.
  • The spec generator that is responsible for dynamically generating the final OpenAPI spec using web service routes or combining other OpenAPI/Json specs.

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.

Contributors

(top 30 of 133)

casualjim

421 commits

k8s-ci-robot

308 commits

Jefftree

82 commits

sttts

73 commits

kubernetes/kube-openapi

Kubernetes OpenAPI spec generation & serving

356

stars

1,565

commits

Go

primary language

Sep 8, 2026

updated

Browse cluster: Kubernetes Core API and Control Plane

README

Kube OpenAPI

This repo is the home for Kubernetes OpenAPI discovery spec generation. The goal is to support a subset of OpenAPI features to satisfy kubernetes use-cases but implement that subset with little to no assumption about the structure of the code or routes. Thus, there should be no kubernetes specific code in this repo.

There are two main parts:

  • A model generator that goes through .go files, find and generate model definitions.
  • The spec generator that is responsible for dynamically generating the final OpenAPI spec using web service routes or combining other OpenAPI/Json specs.

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.

Contributors

(top 30 of 133)

casualjim

421 commits

k8s-ci-robot

308 commits

Jefftree

82 commits

sttts

73 commits

Languages

Go

99.7%