|
7 | 7 |
|
8 | 8 | The Javascript clients for Kubernetes is implemented in
|
9 | 9 | [typescript](https://typescriptlang.org), but can be called from either
|
10 |
| -Javascript or Typescript. |
| 10 | +Javascript or Typescript. The client is implemented for server-side use with Node. |
11 | 11 |
|
12 |
| -For now, the client is implemented for server-side use with node |
13 |
| -using the `request` library. |
14 |
| - |
15 |
| -There are future plans to also build a jQuery compatible library but |
16 |
| -for now, all of the examples and instructions assume the node client. |
| 12 | +The `request` library is currently being swapped to `fetch`. See the [fetch migration docs](./FETCH_MIGRATION.md) for more information and progress. |
17 | 13 |
|
18 | 14 | # Installation
|
19 | 15 |
|
@@ -70,6 +66,7 @@ k8sApi.createNamespace(namespace).then(
|
70 | 66 | ```
|
71 | 67 |
|
72 | 68 | ## Create a cluster configuration programatically
|
| 69 | + |
73 | 70 | ```javascript
|
74 | 71 | const k8s = require('@kubernetes/client-node');
|
75 | 72 |
|
@@ -118,30 +115,31 @@ release, we will increment the minor version whenever we update the minor Kubern
|
118 | 115 | Generally speaking newer clients will work with older Kubernetes, but compatability isn't 100% guaranteed.
|
119 | 116 |
|
120 | 117 | | client version | older versions | 1.18 | 1.19 | 1.20 | 1.21 | 1.22 |
|
121 |
| -|----------------|----------------|------|------|------|------|------| |
122 |
| -| 0.12.x | - | ✓ | x | x | x | x | |
123 |
| -| 0.13.x | - | + | ✓ | x | x | x | |
124 |
| -| 0.14.x | - | + | + | ✓ | x | x | |
125 |
| -| 0.15.x | - | + | + | + | ✓ | x | |
126 |
| -| 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 | - | + | + | + | + | ✓ | |
127 | 124 |
|
128 | 125 | Key:
|
129 | 126 |
|
130 |
| -* `✓` Exactly the same features / API objects in both javascript-client and the Kubernetes |
131 |
| - version. |
132 |
| -* `+` javascript-client has features or api objects that may not be present in the |
133 |
| - Kubernetes cluster, but everything they have in common will work. |
134 |
| -* `-` The Kubernetes cluster has features the javascript-client library can't use |
135 |
| - (additional API objects, etc). |
136 |
| -* `x` The Kubernetes cluster has no guarantees to support the API client of |
137 |
| - this version, as it only promises _n_-2 version support. It is not tested, |
138 |
| - and operations using API versions that have been deprecated and removed in |
139 |
| - later server versions won't function correctly. |
| 127 | +- `✓` Exactly the same features / API objects in both javascript-client and the Kubernetes |
| 128 | + version. |
| 129 | +- `+` javascript-client has features or api objects that may not be present in the |
| 130 | + Kubernetes cluster, but everything they have in common will work. |
| 131 | +- `-` The Kubernetes cluster has features the javascript-client library can't use |
| 132 | + (additional API objects, etc). |
| 133 | +- `x` The Kubernetes cluster has no guarantees to support the API client of |
| 134 | + this version, as it only promises _n_-2 version support. It is not tested, |
| 135 | + and operations using API versions that have been deprecated and removed in |
| 136 | + later server versions won't function correctly. |
140 | 137 |
|
141 | 138 | # Known Issues
|
142 |
| -* Multiple kubeconfigs are not completely supported. |
143 |
| - Credentials are cached based on the kubeconfig username and these can collide across configs. |
144 |
| - Here is the related [issue](https://github.com/kubernetes-client/javascript/issues/592). |
| 139 | + |
| 140 | +- Multiple kubeconfigs are not completely supported. |
| 141 | + Credentials are cached based on the kubeconfig username and these can collide across configs. |
| 142 | + Here is the related [issue](https://github.com/kubernetes-client/javascript/issues/592). |
145 | 143 |
|
146 | 144 | # Development
|
147 | 145 |
|
|
0 commit comments