Skip to content

Commit

Permalink
Merge branch 'master' into inline
Browse files Browse the repository at this point in the history
  • Loading branch information
mbohlool authored Apr 18, 2017
2 parents cbc4a6d + e69d4fe commit c8374eb
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# HEAD
- Add support for attach API calls #180

# v2.0.0a1
- Update to kubernetes 1.6 spec #169

Expand Down
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,43 @@ python -m examples.example1

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

## Compatibility

`client-python` follows [semver](http://semver.org/), so until the major version of
client-python gets increased, your code will continue to work with explicitly
supported versions of Kubernetes clusters.

#### Compatibility matrix

| | Kubernetes 1.3 | Kubernetes 1.4 | Kubernetes 1.5 | Kubernetes 1.6 |
|-------------------------|----------------|----------------|----------------|----------------|
| client-python 1.0 | + | + || - |
| client-python 2.0 alpha | + | + | + ||
| client-python HEAD | + | + | + | + |

Key:

* `` Exactly the same features / API objects in both client-python and the Kubernetes
version.
* `+` client-python has features or api objects that may not be present in the
Kubernetes cluster, but everything they have in common will work.
* `-` The Kubernetes cluster has features the client-python library can't use
(additional API objects, etc).

See the [CHANGELOG](./CHANGELOG.md) for a detailed description of changes
between client-python versions.

| Client version | Canonical source for OpenAPI spec | Maintenance status |
|----------------|--------------------------------------|-------------------------------|
| 1.0 Alpha/Beta | Kubernetes main repo, 1.5 branch ||
| 1.0.x | Kubernetes main repo, 1.5 branch ||
| 2.0 alpha | Kubernetes main repo, 1.6 branch ||

Key:

* `` 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.
* `` No longer maintained; please upgrade.

## Community, Support, Discussion

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).
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def request(self, method, url, query_params=None, headers=None,
"""
# FIXME(dims) : We need a better way to figure out which
# calls end up using web sockets
if url.endswith('/exec') and (method == "GET" or method == "POST"):
if (url.endswith('/exec') or url.endswith('/attach')) and (method == "GET" or method == "POST"):
return ws_client.websocket_call(self.config,
url,
query_params=query_params,
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/ws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def websocket_call(configuration, url, query_params, _request_timeout,
if isinstance(commands, list):
for command in commands:
url += "&command=%s&" % quote_plus(command)
else:
elif commands is not None:
url += '&command=' + quote_plus(commands)

try:
Expand Down

0 comments on commit c8374eb

Please sign in to comment.