Schema of the API types that are served by Kruise.
This library is the canonical location of the Kruise API definition and client.
We recommend using the go types in this repo. You may serialize them directly to JSON.
- The
client
package contains the clientset to access Kruise API. - The
apps
andpolicy
packages contain api definition in go - The
schema
directory contains corresponding openapi schema of kruise source
For each v1.x.y
Kruise release, the corresponding kruise-api will v1.x.z
.
Bugfixes in kruise-api will result in the patch version (third digit z
) changing. PRs that are cherry-picked into an older Kruise release branch will result in an update to the corresponding branch in client-go, with a corresponding new tag changing the patch version.
kruise-api
is synced from https://github.com/openkruise/kruise/tree/master/apis.
Code changes are made in that location, merged into openkruise/kruise
and later synced here.
To get the latest version, use go1.16+ and fetch using the go get
command. For example:
go get github.com/openkruise/kruise-api@latest
To get a specific version, use go1.11+ and fetch the desired version using the go get
command. For example:
go get github.com/openkruise/[email protected]
please refer to the example
https://github.com/openkruise/kruise/tree/master/apis is synced to here. All changes must be made in the former. The latter is read-only.