Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8374eb

Browse files
authored
Merge branch 'master' into inline
2 parents cbc4a6d + e69d4fe commit c8374eb

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# HEAD
2+
- Add support for attach API calls #180
3+
14
# v2.0.0a1
25
- Update to kubernetes 1.6 spec #169
36

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,43 @@ python -m examples.example1
7575

7676
All APIs and Models' documentation can be found at the [Generated client's README file](kubernetes/README.md)
7777

78+
## Compatibility
79+
80+
`client-python` follows [semver](http://semver.org/), so until the major version of
81+
client-python gets increased, your code will continue to work with explicitly
82+
supported versions of Kubernetes clusters.
83+
84+
#### Compatibility matrix
85+
86+
| | Kubernetes 1.3 | Kubernetes 1.4 | Kubernetes 1.5 | Kubernetes 1.6 |
87+
|-------------------------|----------------|----------------|----------------|----------------|
88+
| client-python 1.0 | + | + || - |
89+
| client-python 2.0 alpha | + | + | + ||
90+
| client-python HEAD | + | + | + | + |
91+
92+
Key:
93+
94+
* `` Exactly the same features / API objects in both client-python and the Kubernetes
95+
version.
96+
* `+` client-python has features or api objects that may not be present in the
97+
Kubernetes cluster, but everything they have in common will work.
98+
* `-` The Kubernetes cluster has features the client-python library can't use
99+
(additional API objects, etc).
100+
101+
See the [CHANGELOG](./CHANGELOG.md) for a detailed description of changes
102+
between client-python versions.
103+
104+
| Client version | Canonical source for OpenAPI spec | Maintenance status |
105+
|----------------|--------------------------------------|-------------------------------|
106+
| 1.0 Alpha/Beta | Kubernetes main repo, 1.5 branch ||
107+
| 1.0.x | Kubernetes main repo, 1.5 branch ||
108+
| 2.0 alpha | Kubernetes main repo, 1.6 branch ||
109+
110+
Key:
111+
112+
* `` Changes in main Kubernetes repo are manually ([should be automated](https://github.com/kubernetes-incubator/client-python/issues/177)) published to client-python when they are available.
113+
* `` No longer maintained; please upgrade.
114+
78115
## Community, Support, Discussion
79116

80117
You can reach the maintainers of this project at [SIG API Machinery](https://github.com/kubernetes/community/tree/master/sig-api-machinery). If you have any problem with the package or any suggestions, please file an [issue](https://github.com/kubernetes-incubator/client-python/issues).

kubernetes/client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def request(self, method, url, query_params=None, headers=None,
346346
"""
347347
# FIXME(dims) : We need a better way to figure out which
348348
# calls end up using web sockets
349-
if url.endswith('/exec') and (method == "GET" or method == "POST"):
349+
if (url.endswith('/exec') or url.endswith('/attach')) and (method == "GET" or method == "POST"):
350350
return ws_client.websocket_call(self.config,
351351
url,
352352
query_params=query_params,

kubernetes/client/ws_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def websocket_call(configuration, url, query_params, _request_timeout,
234234
if isinstance(commands, list):
235235
for command in commands:
236236
url += "&command=%s&" % quote_plus(command)
237-
else:
237+
elif commands is not None:
238238
url += '&command=' + quote_plus(commands)
239239

240240
try:

0 commit comments

Comments
 (0)