apis

package module
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

README

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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddToSchemes runtime.SchemeBuilder

AddToSchemes may be used to add all resources defined in the project to a Scheme

Functions

func AddToScheme

func AddToScheme(s *runtime.Scheme) error

AddToScheme adds all Resources to the Scheme

Types

This section is empty.

Directories

Path Synopsis
apps
pub
+k8s:openapi-gen=true +kubebuilder:object:generate=true
+k8s:openapi-gen=true +kubebuilder:object:generate=true
v1alpha1
+k8s:openapi-gen=true +groupName=apps.kruise.io
+k8s:openapi-gen=true +groupName=apps.kruise.io
v1beta1
+k8s:openapi-gen=true +groupName=apps.kruise.io
+k8s:openapi-gen=true +groupName=apps.kruise.io
client
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/apps/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/apps/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
clientset/versioned/typed/apps/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/apps/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
clientset/versioned/typed/policy/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/policy/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
cmd
examples
pkg
policy
v1alpha1
+k8s:openapi-gen=true +groupName=policy.kruise.io
+k8s:openapi-gen=true +groupName=policy.kruise.io
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL