Commit Graph

1522 Commits

Author SHA1 Message Date
Nabarun Pal
08ed6c24fb
Collate OpenAPI generator changes by version
The changes have been listed in the CHANGELOG and linked to the
respective milestone pull requests.

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-19 12:33:00 +05:30
Nabarun Pal
2a664669bc
Update CHANGELOG with latest changes from python-base
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-19 12:33:00 +05:30
Nabarun Pal
9a20c56cd5
Updates python-base submodule
Update from 49ec06096e to fb86b8acb6

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-17 04:06:00 +05:30
Kubernetes Prow Robot
fb86b8acb6
Merge pull request #204 from palnabarun/fix-watch-py2-compatibility
Fix a Python 2 compatibility issue
2020-07-16 09:59:41 -07:00
Nabarun Pal
b68ca30551
Fixes codestyle failures
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 14:08:44 +05:30
Nabarun Pal
a54f404366
Fix a Python 2 compatibility issue
PR #133 introduces the usage of `http` module for checking the status
code for `GONE` HTTP status. However, this doesn't work in Python 2.7.

This commit checks if the interpreter is Python 2 and imports the
status code from `httplib` module instead and unifies the approach
to the checks.

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 14:05:04 +05:30
Nabarun Pal
47768af136
Update the hotfix script
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
da2579a56e
Update CHANGELOG with changes from python-base submodule
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
dae8285878
Cherry pick test for API client context manager
The implementation and tests were already picked up by the upstream OpenAPI
generator [here](https://github.com/OpenAPITools/openapi-generator/pull/5094).
Patching in the tests here for correctness and clarity.

Reference: https://github.com/kubernetes-client/python/pull/1073

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
146119213c
Add kubernetes.client.apis as an alias to kubernetes.client.api
Reference: https://github.com/kubernetes-client/python/issues/974

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
b78f5cfd6e
Fix custom objects API to preserve backward compatibility
Reference:
- [#866](https://github.com/kubernetes-client/python/issues/866)
- [#959](https://github.com/kubernetes-client/python/pull/959)

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
dea6754f9f
Update CHANGELOG
The upstream 1.16 API moved ahead due to [patch releases](https://github.com/kubernetes/sig-release/blob/master/releases/patch-releases.md).

The logs are gathered from the upstream [CHANGELOG](https://raw.githubusercontent.com/kubernetes/kubernetes/master/CHANGELOG/CHANGELOG-1.16.md).

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:40 +05:30
Nabarun Pal
ec9c944f07
Remove tests since they have syntactical issues and are noop
Reference: https://github.com/OpenAPITools/openapi-generator/issues/5377

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:39 +05:30
Nabarun Pal
b4d11b02a3
Update client with OpenAPI generator v4.3.0
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-07-16 13:42:39 +05:30
Kubernetes Prow Robot
7fc2c315c8
Merge pull request #202 from roycaihw/fix/add-old-token
Add old api_key to set auth attributes
2020-07-16 01:03:41 -07:00
Haowei Cai
a7c78291bf add old api_key to set auth attributes 2020-07-16 00:38:24 -07:00
Kubernetes Prow Robot
ded3d12e04
Merge pull request #133 from mitar/retry-watch
Retry expired watches
2020-07-15 12:30:37 -07:00
Mitar
06e48c585c Retry watch if request expires. 2020-07-15 12:27:32 -07:00
Abhijeet Kasurde
a270ea2946 FileOrData: Handle None object
Return when object is None in FileOrData class

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-07-02 23:04:48 +05:30
Kubernetes Prow Robot
e60d9212c6
Merge pull request #1194 from ACXLM/update-python-base
update python base
2020-06-29 15:45:59 -07:00
ACXLM
17dc22ed58 update python base 2020-06-26 12:23:41 +08:00
Kubernetes Prow Robot
3ea80032c3
Merge pull request #198 from ACXLM/fix/load-kube-config
fix cfg is none, load kube config error
2020-06-25 10:10:38 -07:00
ACXLM
30d9e2af1c change test case 2020-06-25 20:53:29 +08:00
Kubernetes Prow Robot
70d6639963
Merge pull request #200 from roycaihw/fix/pycodestyle
Run scripts/update-pycodestyle.sh to fix the pycodestyle test failure
2020-06-22 16:19:40 -07:00
Haowei Cai
982de11392 generated by scripts/update-pycodestyle.sh in main repo 2020-06-22 16:08:20 -07:00
Kubernetes Prow Robot
10671f9426
Merge pull request #1187 from palnabarun/fix-github-actions-issue
Fix the issue with Github Actions
2020-06-22 09:12:39 -07:00
Nabarun Pal
3866e9642b
Fix the issue with Github Actions
The submodule needs to be synced when checking out the repository.

Ref: https://github.com/actions/checkout

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-06-22 19:14:37 +05:30
Kubernetes Prow Robot
a6a627325b
Merge pull request #195 from vishnu667/kubeConfig_from_dict
Adding ability to set kube config from a dict.
2020-06-19 12:44:43 -07:00
vishnu667
91812350e4 updated docstring for load_kube_config_from_dict 2020-06-20 00:50:39 +05:30
ACXLM
3ff79da50c fix cfg is none, load kube config error
Signed-off-by: zhu hui <hui.zhu@daocloud.io>
2020-06-02 13:55:43 +08:00
Kubernetes Prow Robot
b6e4ae81a2
Merge pull request #1161 from zshihang/master
update python-base
2020-05-26 10:25:13 -07:00
vishnu667
52a3bdc159 removing load from dict presist from the added test cases. 2020-05-22 00:57:46 +05:30
vishnu667
6c327377e8 test case fix __get_kube_config_loader_dict_no_persist 2020-05-22 00:05:15 +05:30
vishnu667
c6e8194127 Adding config to init file and indentation fixes 2020-05-15 22:14:22 +05:30
vishnu667
e92495f0d1 Adding test Cases 2020-05-15 20:37:36 +05:30
vishnu667
27a1b811d4 Re-using the _get_kube_config_loader in _get_kube_config_loader_for_yaml_file 2020-05-14 16:13:47 +05:30
vishnu667
ab515103d8 Adding ability to pass kube_config as a dict. 2020-05-14 07:44:54 +05:30
Kubernetes Prow Robot
7763e37b7d
Merge pull request #1166 from roycaihw/github-actions
Add github actions
2020-05-13 18:00:22 -07:00
Shihang Zhang
f7d0f126b4 update python-base 2020-05-13 15:45:49 -07:00
Kubernetes Prow Robot
49ec06096e
Merge pull request #193 from zshihang/master
allow incluster to accept pass-in config
2020-05-13 15:44:22 -07:00
Shihang Zhang
0b1ac80470 allow incluster to accept pass-in config 2020-05-13 14:57:27 -07:00
Kubernetes Prow Robot
cef5e9bd10
Merge pull request #1155 from MoShitrit/fix-issue-967
Update Examples to stop using deprecated versions
2020-05-12 15:02:26 -07:00
MoShitrit
6e62c3dd97 Reverting some changed that were made by IDE 2020-05-11 20:02:17 -04:00
Haowei Cai
bdd32dd938 add github actions 2020-05-11 16:05:31 -07:00
Kubernetes Prow Robot
d63282e8d3
Merge pull request #1141 from palnabarun/snaphot-client-k8s-release-1.16
Snapshot the Kubernetes 1.16 release
2020-05-11 14:28:21 -07:00
Kubernetes Prow Robot
99160c9ad2
Merge pull request #1160 from MoShitrit/issue-1157
Add resources requests and limits to create_deployment example
2020-05-09 21:15:50 -07:00
MoShitrit
a318e83c37 Expand the deployment_crud example to include requests and limits specification 2020-05-05 00:38:42 -04:00
MoShitrit
1a1ae19371 Update documentation to stop using deprecated versions. 2020-05-01 16:39:45 -04:00
Nabarun Pal
afd837a98e
Add 1.16 API changes to CHANGELOG
The changes are collected from upstream
[CHANGELOG](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.16.md)
2020-04-29 05:24:05 +05:30
Kubernetes Prow Robot
bf5c599871
Merge pull request #191 from zshihang/master
set expiration on token of incluster config and reload if expires
2020-04-27 14:48:05 -07:00