-
I started looking into the documentation of CAPI recently. I was expecting to see a link to OpenAPI specification for it in the documentation assuming that it is an API at a minimum but could not find any. It seems to be a collection of tools (clusterctl etc) so why exactly it is called an API? If it is an API too, where can I find OpenAPI specification for it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It is an API. The API is not served by Cluster API but uses the CustomResourceDefinition mechanism of the Kubernetes API server to provide it. The CustomResourceDefinitions, which are a full description of the API partially consisting of openAPIv3 spec, reside here and are generated from these Go types. |
Beta Was this translation helpful? Give feedback.
It is an API. The API is not served by Cluster API but uses the CustomResourceDefinition mechanism of the Kubernetes API server to provide it.
The CustomResourceDefinitions, which are a full description of the API partially consisting of openAPIv3 spec, reside here and are generated from these Go types.
There is a useful tool that renders the types (or CRD definitions, not sure actually) into a nice website: https://doc.crds.dev/github.com/kubernetes-sigs/cluster-api