The canonical location of the Kruise API definition.
Go to file
Zhen Zhang 09b60c9cd2
update sample to use 1.8 apie (#26)
Signed-off-by: 守辰 <shouchen.zz@alibaba-inc.com>
2025-04-02 14:23:36 +08:00
.github/workflows feat: add merge annotations for kruise crds and schema generator (#18) 2023-09-29 16:26:23 +08:00
apps update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
client update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
cmd/gen-schema remote rollout api & client from the repo (#20) 2024-01-29 17:10:37 +08:00
examples/create-update-delete-cloneset update sample to use 1.8 apie (#26) 2025-04-02 14:23:36 +08:00
hack update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
pkg update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
policy/v1alpha1 update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
schema update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
test/kustomize feat: add merge annotations for kruise crds and schema generator (#18) 2023-09-29 16:26:23 +08:00
utils Fetch master 2022-07-27 19:16:52 +08:00
.gitignore Remove bin/ 2021-12-09 12:02:45 +08:00
LICENSE Initial commit 2020-03-24 15:56:09 +08:00
Makefile update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
OWNERS Add OWNERS 2022-08-30 11:57:14 +08:00
README.md sync kruise v1.6.1 (#22) 2024-03-22 14:05:26 +08:00
addtoscheme_apps_v1alpha1.go Fetch v0.6.1 2020-12-09 11:54:21 +08:00
addtoscheme_apps_v1beta1.go Fetch master 2020-12-09 12:22:31 +08:00
addtoscheme_policy_v1alpha1.go update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
apis.go Fetch v0.6.1 2020-12-09 11:54:21 +08:00
go.mod update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00
go.sum update to kruise 1.8.0 (#25) 2025-02-18 19:34:46 +08:00

README.md

kruise-api

Schema of the API types that are served by Kruise.

Purpose

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.

What's included

  • The client package contains the clientset to access Kruise API.
  • The apps and policy packages contain api definition in go
  • The schema directory contains corresponding openapi schema of kruise source

Versioning

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.

Where does it come from?

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.

How to get it

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/kruise-api@v1.6.0

How to use it

please refer to the example

Things you should NOT do

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.