@@ -66,6 +66,7 @@ k8sApi.createNamespace(namespace).then(
66
66
```
67
67
68
68
## Create a cluster configuration programatically
69
+
69
70
``` javascript
70
71
const k8s = require (' @kubernetes/client-node' );
71
72
@@ -114,28 +115,29 @@ release, we will increment the minor version whenever we update the minor Kubern
114
115
Generally speaking newer clients will work with older Kubernetes, but compatability isn't 100% guaranteed.
115
116
116
117
| client version | older versions | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 |
117
- | ---------------- | ---------------- | ------ | ------ | ------ | ------ | ------ |
118
- | 0.12.x | - | ✓ | x | x | x | x |
119
- | 0.13.x | - | + | ✓ | x | x | x |
120
- | 0.14.x | - | + | + | ✓ | x | x |
121
- | 0.15.x | - | + | + | + | ✓ | x |
122
- | 0.16.x | - | + | + | + | + | ✓ |
118
+ | -------------- | -------------- | ---- | ---- | ---- | ---- | ---- |
119
+ | 0.12.x | - | ✓ | x | x | x | x |
120
+ | 0.13.x | - | + | ✓ | x | x | x |
121
+ | 0.14.x | - | + | + | ✓ | x | x |
122
+ | 0.15.x | - | + | + | + | ✓ | x |
123
+ | 0.16.x | - | + | + | + | + | ✓ |
123
124
124
125
Key:
125
126
126
- * ` ✓ ` Exactly the same features / API objects in both javascript-client and the Kubernetes
127
+ - ` ✓ ` Exactly the same features / API objects in both javascript-client and the Kubernetes
127
128
version.
128
- * ` + ` javascript-client has features or api objects that may not be present in the
129
+ - ` + ` javascript-client has features or api objects that may not be present in the
129
130
Kubernetes cluster, but everything they have in common will work.
130
- * ` - ` The Kubernetes cluster has features the javascript-client library can't use
131
+ - ` - ` The Kubernetes cluster has features the javascript-client library can't use
131
132
(additional API objects, etc).
132
- * ` x ` The Kubernetes cluster has no guarantees to support the API client of
133
+ - ` x ` The Kubernetes cluster has no guarantees to support the API client of
133
134
this version, as it only promises _ n_ -2 version support. It is not tested,
134
135
and operations using API versions that have been deprecated and removed in
135
136
later server versions won't function correctly.
136
137
137
138
# Known Issues
138
- * Multiple kubeconfigs are not completely supported.
139
+
140
+ - Multiple kubeconfigs are not completely supported.
139
141
Credentials are cached based on the kubeconfig username and these can collide across configs.
140
142
Here is the related [ issue] ( https://github.com/kubernetes-client/javascript/issues/592 ) .
141
143
@@ -171,7 +173,7 @@ Run `npm run format` or install an editor plugin like https://github.com/prettie
171
173
172
174
## Linting
173
175
174
- Run ` npm run lint ` or install an editor plugin like https://github.com/Microsoft/vscode-typescript-tslint-plugin
176
+ Run ` npm run lint ` or install an editor plugin.
175
177
176
178
# Testing
177
179
0 commit comments