Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

OpenAPI based generated Go Client for Kubernetes

License

NotificationsYou must be signed in to change notification settings

kubernetes-client/go

This repo hosts an experimental Golang client library generated usingswagger-codegen andKubernetes OpenAPI spec. Currently the client capability meets the Bronze Requirement and is supported in Alpha state, as described inKubernetes: New Client Library Procedure. For more advanced functionality (e.g. controller and shared informer), please refer to the more mature KubernetesGo client.

Installation

Get the source:

cd $GOPATH/src/k8s.iogit clone --recursive https://github.com/kubernetes-client/go.git clientcd client

NOTE ongo get:

Currently this repo is still under experimental state and the domains haven't been set up forgo get yet. Please get the library from source.

Example

Please seehttps://github.com/kubernetes-client/go/tree/master/examples forbasic examples of using this client library.

Documentation

All APIs and Models' documentation can be found at theGenerated client's README file

Compatibility

This client library followssemver, so until the major version ofclient gets increased, your code will continue to work with explicitlysupported versions of Kubernetes clusters.

Compatibility matrix

Kubernetes 1.10Kubernetes 1.13
client 0.1.0a1
client 0.2.0a1

Key:

  • Exactly the same features / API objects in both Go client and the Kubernetesversion.
  • + Go client has features or api objects that may not be present in theKubernetes cluster, but everything they have in common will work.
  • - The Kubernetes cluster has features the Go client library can't use(additional API objects, etc).

Generatic code

Check outhttps://github.com/kubernetes-client/gen into${GEN_DIR}.

Assume thathttps://github.com/kubernetes-client/go is in${GO_DIR}.

cd${GO_DIR}/kubernetes${GEN_DIR}/openapi/go.sh ./ ./settings

Contributing

Please seeCONTRIBUTING.md for instructions on how to contribute.

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp