mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 15:39:39 +00:00
Merge pull request #316 from caesarxuchao/update-readme
Update README.md to explain kubernetes tags and the v5.0.0 tag
This commit is contained in:
commit
98d1cb61d1
51
README.md
51
README.md
@ -17,6 +17,7 @@ will give you head and doesn't handle the dependencies well.
|
|||||||
- [Compatibility: client-go <-> Kubernetes clusters](#compatibility-client-go---kubernetes-clusters)
|
- [Compatibility: client-go <-> Kubernetes clusters](#compatibility-client-go---kubernetes-clusters)
|
||||||
- [Compatibility matrix](#compatibility-matrix)
|
- [Compatibility matrix](#compatibility-matrix)
|
||||||
- [Why do the 1.4 and 1.5 branch contain top-level folder named after the version?](#why-do-the-14-and-15-branch-contain-top-level-folder-named-after-the-version)
|
- [Why do the 1.4 and 1.5 branch contain top-level folder named after the version?](#why-do-the-14-and-15-branch-contain-top-level-folder-named-after-the-version)
|
||||||
|
- [Kuberentes tags](#kubernetes-tags)
|
||||||
- [How to get it](#how-to-get-it)
|
- [How to get it](#how-to-get-it)
|
||||||
- [How to use it](#how-to-use-it)
|
- [How to use it](#how-to-use-it)
|
||||||
- [Dependency management](#dependency-management)
|
- [Dependency management](#dependency-management)
|
||||||
@ -80,27 +81,29 @@ We will backport bugfixes--but not new features--into older versions of
|
|||||||
|
|
||||||
#### Compatibility matrix
|
#### Compatibility matrix
|
||||||
|
|
||||||
| | Kubernetes 1.3 | Kubernetes 1.4 | Kubernetes 1.5 | Kubernetes 1.6 | Kubernetes 1.7 |
|
| | Kubernetes 1.4 | Kubernetes 1.5 | Kubernetes 1.6 | Kubernetes 1.7 | Kubernetes 1.8 |
|
||||||
|---------------------|----------------|----------------|----------------|----------------|----------------|
|
|---------------------|----------------|----------------|----------------|----------------|----------------|
|
||||||
| client-go 1.4 | + | ✓ | - | - | - |
|
| client-go 1.4 | ✓ | - | - | - | - |
|
||||||
| client-go 1.5 | + | + | - | - | - |
|
| client-go 1.5 | + | - | - | - | - |
|
||||||
| client-go 2.0 | + | + | ✓ | - | - |
|
| client-go 2.0 | +- | ✓ | +- | +- | +- |
|
||||||
| client-go 3.0 | † | † | † | ✓ | - |
|
| client-go 3.0 | +- | +- | ✓ | - | +- |
|
||||||
| client-go 4.0 | † | † | † | + | ✓ |
|
| client-go 4.0 | +- | +- | +- | ✓ | +- |
|
||||||
| client-go HEAD | † | † | † | + | + |
|
| client-go 5.0 | +- | +- | +- | +- | ✓ |
|
||||||
|
| client-go HEAD | +- | +- | +- | +- | + |
|
||||||
|
|
||||||
Key:
|
Key:
|
||||||
|
|
||||||
* `✓` Exactly the same features / API objects in both client-go and the Kubernetes
|
* `✓` Exactly the same features / API objects in both client-go and the Kubernetes
|
||||||
version.
|
version.
|
||||||
* `+` client-go has features or api objects that may not be present in the
|
* `+` client-go has features or API objects that may not be present in the
|
||||||
Kubernetes cluster, but everything they have in common will work. Please
|
Kubernetes cluster, either due to that client-go has additional new API, or
|
||||||
note that alpha APIs may vanish or change significantly in a single release.
|
that the server has removed old API. However, everything they have in
|
||||||
* `†` client-go has new features or api objects, and some APIs running in the
|
common (i.e., most APIs) will work. Please note that alpha APIs may vanish or
|
||||||
cluster may have been deprecated and removed from client-go. But everything
|
change significantly in a single release.
|
||||||
they share in common (i.e., most APIs) will work.
|
* `-` The Kubernetes cluster has features the client-go library can't use,
|
||||||
* `-` The Kubernetes cluster has features the client-go library can't use
|
either due to the server has additional new API, or that client-go has
|
||||||
(additional API objects, etc).
|
removed old API. However, everything they share in common (i.e., most APIs)
|
||||||
|
will work.
|
||||||
|
|
||||||
See the [CHANGELOG](./CHANGELOG.md) for a detailed description of changes
|
See the [CHANGELOG](./CHANGELOG.md) for a detailed description of changes
|
||||||
between client-go versions.
|
between client-go versions.
|
||||||
@ -112,6 +115,7 @@ between client-go versions.
|
|||||||
| client-go 2.0 | Kubernetes main repo, 1.5 branch | ✓ |
|
| client-go 2.0 | Kubernetes main repo, 1.5 branch | ✓ |
|
||||||
| client-go 3.0 | Kubernetes main repo, 1.6 branch | ✓ |
|
| client-go 3.0 | Kubernetes main repo, 1.6 branch | ✓ |
|
||||||
| client-go 4.0 | Kubernetes main repo, 1.7 branch | ✓ |
|
| client-go 4.0 | Kubernetes main repo, 1.7 branch | ✓ |
|
||||||
|
| client-go 5.0 | Kubernetes main repo, 1.8 branch | ✓ |
|
||||||
| client-go HEAD | Kubernetes main repo, master branch | ✓ |
|
| client-go HEAD | Kubernetes main repo, master branch | ✓ |
|
||||||
|
|
||||||
Key:
|
Key:
|
||||||
@ -134,6 +138,23 @@ separate directories for each minor version. That soon proved to be a mistake.
|
|||||||
We are keeping the top-level folders in the 1.4 and 1.5 branches so that
|
We are keeping the top-level folders in the 1.4 and 1.5 branches so that
|
||||||
existing users won't be broken.
|
existing users won't be broken.
|
||||||
|
|
||||||
|
### Kubernetes tags
|
||||||
|
|
||||||
|
As of October 2017, client-go is still a mirror of
|
||||||
|
[k8s.io/kubernetes/staging/src/client-go](https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/client-go),
|
||||||
|
the code development is still done in the staging area. Since Kubernetes 1.8
|
||||||
|
release, when syncing the code from the staging area, we also sync the Kubernetes
|
||||||
|
version tags to client-go, prefixed with "kubernetes-". For example, if you check
|
||||||
|
out the `kubernetes-v1.8.0` tag in client-go, the code you get is exactly the
|
||||||
|
same as if you check out the `v1.8.0` tag in kubernetes, and change directory to
|
||||||
|
`staging/src/k8s.io/client-go`. The purpose is to let users quickly find matching
|
||||||
|
commits among published repos, like
|
||||||
|
[sample-apiserver](https://github.com/kubernetes/sample-apiserver),
|
||||||
|
[apiextension-apiserver](https://github.com/kubernetes/apiextensions-apiserver),
|
||||||
|
etc. The Kubernetes version tag does NOT claim any backwards compatibility
|
||||||
|
guarantees for client-go. Please check the [semantic versions](#versioning) if
|
||||||
|
you care about backwards compatibility.
|
||||||
|
|
||||||
### How to get it
|
### How to get it
|
||||||
|
|
||||||
You can use `go get k8s.io/client-go/...` to get client-go, but **you will get
|
You can use `go get k8s.io/client-go/...` to get client-go, but **you will get
|
||||||
|
Loading…
Reference in New Issue
Block a user