Skip to content

Commit 041f127

Browse files
authored
add version matrix (#716)
1 parent 3f178a7 commit 041f127

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,24 @@ cd ${REPO_DIR}/csharp/src/KubernetesClient
147147
${GEN_DIR}/openapi/csharp.sh generated ../csharp.settings
148148
```
149149

150+
# Version Compatibility
151+
152+
| SDK Version | Kubernetes Version | .NET Targeting |
153+
|-------------|--------------------|---------------------------------------|
154+
| 6.0 | 1.22 | netstandard2.1;net5 |
155+
| 5.0 | 1.21 | netstandard2.1;net5 |
156+
| 4.0 | 1.20 | netstandard2.0;netstandard2.1 |
157+
| 3.0 | 1.19 | netstandard2.0;net452 |
158+
| 2.0 | 1.18 | netstandard2.0;net453 |
159+
| 1.6 | 1.16 | netstandard1.4;netstandard2.0;net452; |
160+
| 1.4 | 1.13 | netstandard1.4;net451 |
161+
| 1.3 | 1.12 | netstandard1.4;net452 |
162+
163+
* Starting form `2.0`, [dotnet sdk versioning](https://github.com/kubernetes-client/csharp/issues/400) adopted
164+
* `Kubernetes Version` here means the version sdk models and apis were generated from
165+
* Kubernetes api server guarantees the compatibility with `n-2` version. for exmaple, 1.19 based sdk should work with 1.21 cluster, but no guarantee works with 1.22 cluster. see also <https://kubernetes.io/releases/version-skew-policy/>
166+
167+
150168
## Contributing
151169

152170
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute.

0 commit comments

Comments
 (0)