Skip to content

Use swagger-codegen HEAD to generate the client #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Master
- Adding stream package to support calls like exec. The old way of calling them is deprecated. See [Troubleshooting](README.md#why-execattach-calls-doesnt-work)).
- config.http_proxy_url is deprecated. use configuration.proxy instead.
- Configuration is not a singleton object anymore. Please use Configuraion.set_default to change default configuration.
- Configuration class does not support `ws_streaming_protocol` anymore. In ApiClient.set_default_header set `sec-websocket-protocol` to the preferred websocket protocol.

# v3.0.0
- Fix Operation names for subresources kubernetes/kubernetes#49357
Expand Down
6 changes: 4 additions & 2 deletions examples/exec.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import time

from kubernetes import config
from kubernetes.client import configuration
from kubernetes.client import Configuration
from kubernetes.client.apis import core_v1_api
from kubernetes.client.rest import ApiException
from kubernetes.stream import stream

config.load_kube_config()
configuration.assert_hostname = False
c = Configuration()
c.assert_hostname = False
Configuration.set_default(c)
api = core_v1_api.CoreV1Api()
name = 'busybox-test'

Expand Down
3 changes: 0 additions & 3 deletions kubernetes/.swagger-codegen-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ test-requirements.txt
setup.py
.travis.yml
tox.ini
client/api_client.py
client/configuration.py
client/rest.py
4 changes: 2 additions & 2 deletions kubernetes/.swagger-codegen/COMMIT
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Requested Commit: v2.2.2
Actual Commit: ff209ada223dcc7f6c6afc59bb02ec96b85c7e39
Requested Commit: d2b91073e1fc499fea67141ff4c17740d25f8e83
Actual Commit: d2b91073e1fc499fea67141ff4c17740d25f8e83
1 change: 1 addition & 0 deletions kubernetes/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.0-SNAPSHOT
2 changes: 1 addition & 1 deletion kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger

This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: v1.7.4
- API version: v1.7.9
- Package version: 3.0.0-snapshot
- Build package: io.swagger.codegen.languages.PythonClientCodegen

Expand Down
2 changes: 1 addition & 1 deletion kubernetes/base
4 changes: 2 additions & 2 deletions kubernetes/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1.7.4
OpenAPI spec version: v1.7.9

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
Expand Down Expand Up @@ -418,4 +418,4 @@
# import ApiClient
from .api_client import ApiClient

from .configuration import Configuration, ConfigurationObject, configuration
from .configuration import Configuration
1 change: 0 additions & 1 deletion kubernetes/client/api_client.py

This file was deleted.

Loading