Commit Graph

32 Commits

Author SHA1 Message Date
Yu Liao
a688be31b8 generated client change 2023-02-15 06:05:17 +00:00
Yu Liao
f3084ca40d generated client change 2023-01-31 05:30:32 +00:00
Yu Liao
2a021b1c7b generated client change 2023-01-24 22:54:13 +00:00
Yu Liao
356208a0f6 generated client change 2023-01-24 02:04:54 +00:00
Alexey Volkov
a4189ccf4e
Fixed double module imports
In Python, when you write `import foo.bar.baz` this means that the modules would be imported and the name `foo` will be bound locally and becomes available in the module. https://docs.python.org/3/reference/simple_stmts.html#import

So, doing `import kubernetes.client` leads to name `kubernetes` (not `client`) being added to the `kubernetes` module leading to a weird duplicate nesting. See:
```
>>> import kubernetes
>>> kubernetes
<module 'kubernetes' from 'C:\\Users\\Ark\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\kubernetes\\__init__.py'>
>>> kubernetes.kubernetes
<module 'kubernetes' from 'C:\\Users\\Ark\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\kubernetes\\__init__.py'>
```

We can solve this issues by using the `import ... from ...` syntax: Replace `import kubernetes.client` with `from kubernetes import client`.

I see that most modules already use relative imports, so I'm using relative imports here as well: `from . import client`.
2022-10-23 17:50:50 -07:00
Yu Liao
beb98e076f generated client change
Some checks failed
Kubernetes Python Client - Validation / build (3.10) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.6) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.7) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.8) (push) Has been cancelled
Kubernetes Python Client - Validation / build (3.9, coverage) (push) Has been cancelled
2022-10-11 20:12:43 +00:00
Yu Liao
8e643c9cb1 generated client change 2022-06-06 21:11:30 +00:00
Haowei Cai
72b03a81f9 generated client change 2022-05-02 11:59:00 -07:00
Yu Liao
ffceaa87d2 generated client change 2022-02-14 14:12:03 -08:00
Yu Liao
443f4a5d07 generated client change 2022-01-04 09:43:10 -08:00
Yu Liao
9c3891d40e generated client change 2021-11-29 11:00:29 -08:00
Yu Liao
6d785aabd5 generated client change 2021-10-25 14:41:05 -07:00
Haowei Cai
ba844599ab generated client change 2021-09-13 12:59:17 -07:00
Nabarun Pal
c55930bb50
Generate updated client 18.0.0-snapshot
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-09 21:07:31 +05:30
Sumant
bd26d85e84 Enable leaderelection 2021-01-28 18:50:23 -05:00
Nabarun Pal
598d41ba5f
Generate client 17.0.0
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2020-11-07 16:10:08 +05:30
Nabarun Pal
c206745dcd
Generate updated client 2020-04-03 01:46:00 +05:30
micw523
6a27be5cd2 enable dynamic client 2019-12-18 15:18:20 -06:00
Haowei Cai
5cddbde0bf generated client change for 11.0.0-snapshot 2019-11-11 12:02:41 -08:00
Haowei Cai
b603b4a9c4 generated client change for 10.0.0-snapshot 2019-04-03 13:53:46 -07:00
Haowei Cai
cd411d2707 generated client change for 9.0.0-snapshot version constant update 2018-12-07 16:43:15 -08:00
micw523
5a92ba65aa Add kubectl create -f feature 2018-10-31 19:34:18 -05:00
Haowei Cai
316509b32a generated client change for 8.0.0 snapshot on master branch
against kubernetes release-1.12 branch
2018-09-28 14:16:18 -07:00
Haowei Cai
5f81a65909 Generated client change for Kubernetes 1.11 2018-07-11 13:31:26 -07:00
Haowei Cai
71b5abce5a Generated API change for kubernetes 1.10 2018-03-12 11:11:47 -07:00
Haowei Cai
3abfdf9ebd Update master to kubernetes 1.9 2018-01-26 13:44:27 -08:00
mbohlool
6b1a80c67f Updte master to kubernetes 1.8 2017-10-09 17:56:32 -07:00
mbohlool
27ba35aa81 Use stream module to call exec/attach calls 2017-09-22 11:42:59 -07:00
Jochen Breuer
3b66dde057 Changes from update-client.sh 2017-08-16 08:11:47 +02:00
Jochen Breuer
1054f10c6d Introducing __version__ and __project__ variables
Version information comes from scripts/constants.py and is hard-coded to
kubernetes/__init__py by scripts/update-client.sh.

__project__ is just hard-coded.

Fixes #317
2017-08-16 08:11:47 +02:00
mbohlool
26ac2c4a12 Separate package util into config and watch package 2016-11-22 17:52:46 -08:00
mbohlool
b715e998b0 Export util and client modules in top level kubernetes module 2016-11-22 17:23:41 -08:00