Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6cc3331

Browse filesBrowse files
committed
Merge branch 'master' of github.com:kubernetes-client/python into release-10.0
2 parents fa423cb + c488354 commit 6cc3331
Copy full SHA for 6cc3331

File tree

1,348 files changed

+1466
-1387
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

1,348 files changed

+1466
-1387
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# v10.0.0
2+
**Bug Fix:**
3+
- Fix base64 padding for kube config [kubernetes-client/python-base#79](https://github.com/kubernetes-client/python-base/pull/79)
4+
- Fix websocket client decoding binary message. Replace non-utf8 data instead of failing [kubernetes-client/python-base#104](https://github.com/kubernetes-client/python-base/pull/104)
5+
- Add email scope to GCP provided credential refresh [kubernetes-client/python-base#110](https://github.com/kubernetes-client/python-base/pull/110)
6+
- Fix broken urllib3 dependencies [kubernetes-client/python#816](https://github.com/kubernetes-client/python/pull/816)
7+
8+
**New Feature:**
9+
- Add method to dynamically set namespace in yaml utility [kubernetes-client/python#782](https://github.com/kubernetes-client/python/pull/782)
10+
111
# v10.0.0a1
212
**Bug Fix:**
313
- Make watch work with read_namespaced_pod_log [kubernetes-client/python-base#93](https://github.com/kubernetes-client/python-base/pull/93)

‎CONTRIBUTING.md

Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing guidelines
1+
# Contributing Guidelines
22

33
## How to become a contributor and submit your own code
44

@@ -21,6 +21,6 @@ Follow either of the two links above to access the appropriate CLA and instructi
2121
1. Fork the desired repo, develop and test your code changes.
2222
1. Submit a pull request.
2323

24-
### Adding dependencies
24+
### Adding Dependencies
2525

2626
If your patch depends on new packages, add those packages to [requirements.txt](requirements.txt) and [setup.py](setup.py).

‎OWNERS

Copy file name to clipboardExpand all lines: OWNERS
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ approvers:
66
- lavalamp
77
- yliaog
88
- roycaihw
9-

‎README.md

Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ python -m examples.example1
7070

7171
(replace example1 with the example base filename)
7272

73-
7473
## Documentation
7574

7675
All APIs and Models' documentation can be found at the [Generated client's README file](kubernetes/README.md)
@@ -124,13 +123,13 @@ between client-python versions.
124123
| 6.0 Alpha/Beta | Kubernetes main repo, 1.10 branch ||
125124
| 6.0 | Kubernetes main repo, 1.10 branch ||
126125
| 7.0 Alpha/Beta | Kubernetes main repo, 1.11 branch ||
127-
| 7.0 | Kubernetes main repo, 1.11 branch | |
126+
| 7.0 | Kubernetes main repo, 1.11 branch | |
128127
| 8.0 Alpha/Beta | Kubernetes main repo, 1.12 branch ||
129128
| 8.0 | Kubernetes main repo, 1.12 branch ||
130129
| 9.0 Alpha/Beta | Kubernetes main repo, 1.13 branch ||
131130
| 9.0 | Kubernetes main repo, 1.13 branch ||
132-
| 10.0 Alpha/Beta | Kubernetes main repo, 1.14 branch | |
133-
131+
| 10.0 Alpha/Beta | Kubernetes main repo, 1.14 branch | |
132+
| 10.0 | Kubernetes main repo, 1.14 branch ||
134133

135134
Key:
136135

@@ -151,11 +150,10 @@ Participation in the Kubernetes community is governed by the [CNCF Code of Condu
151150

152151
## Kubernetes Incubator
153152

154-
This is a [Kubernetes Incubator project](https://github.com/kubernetes/community/blob/master/incubator.md).
153+
This is a [Kubernetes Incubator project](https://github.com/kubernetes/community/blob/master/incubator.md).
155154

156155
* [SIG: sig-api-machinery](https://github.com/kubernetes/community/tree/master/sig-api-machinery)
157156

158-
159157
## Troubleshooting
160158

161159
### SSLError on macOS
@@ -179,10 +177,11 @@ You'll need a version with OpenSSL version 1.0.0 or later.
179177

180178
### Hostname doesn't match
181179

182-
If you get an `ssl.CertificateError` complaining about hostname match, your installed packages does not meet version [requirements](requirements.txt).
180+
If you get an `ssl.CertificateError` complaining about hostname match, your installed packages does not meet version [requirements](requirements.txt).
183181
Specifically check `ipaddress` and `urllib3` package versions to make sure they met requirements in [requirements.txt](requirements.txt) file.
184182

185183
### Why Exec/Attach calls doesn't work
184+
186185
Starting from 4.0 release, we do not support directly calling exec or attach calls. you should use stream module to call them. so instead
187186
of `resp = api.connect_get_namespaced_pod_exec(name, ...` you should call `resp = stream(api.connect_get_namespaced_pod_exec, name, ...`.
188187
See more at [exec example](examples/exec.py).

‎devel/release.md

Copy file name to clipboardExpand all lines: devel/release.md
+23-22Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Release process
22

3-
Release process of python client involve creating (or updating) a release
4-
branch, update release tags, create distribution packages and upload them to
5-
pip.
3+
The release process of the python client involves creating (or updating) a release
4+
branch, updating release tags, and creating distribution packages and uploading them to
5+
pypi.
66

77
## Change logs
8-
Make sure changes logs are up to date [here](https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md).
9-
If they are not, follow commits added after last release and update/commit
8+
Make sure the change logs are up to date [here](https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md).
9+
If they are not, follow commits added after the last release and update/commit
1010
the change logs to master.
1111

1212
Then based on the release, follow one of next two steps.
1313

1414
## Update pre-release branch
1515

16-
Release branch name should have release-x.x format. All minor and pre-releases
17-
should be on the same branch. To update an existing branch with master(only for
16+
The release branch name should have release-x.x format. All minor and pre-releases
17+
should be on the same branch. To update an existing branch with master (only for
1818
latest pre-release):
1919

2020
```bash
@@ -37,8 +37,8 @@ cherry pick first:
3737
scripts/cherry_pick_pull.sh
3838
```
3939

40-
Do not merge master into an stable releast branch. Run the script without
41-
parameters and follow its instruction to create cherry pick PR and get the
40+
Do not merge master into a stable release branch. Run the script without
41+
parameters and follow its instructions to create a cherry pick PR. Get the
4242
PR merged then update your local branch:
4343

4444
```bash
@@ -49,26 +49,27 @@ git rebase upstream/$RELEASE_BRANCH
4949
```
5050

5151
## Sanity check generated client
52-
We need to make sure there is no API changes after running update client
53-
scripts. Such changes should be committed to master branch first. Run this
52+
53+
We need to make sure there are no API changes after running update client
54+
scripts. Such changes should be committed to the master branch first. Run this
5455
command:
5556

5657
```bash
5758
scripts/update-client.sh
5859
```
5960

6061
And make sure there is no API change (version number changes should be fine
61-
as they will be updated in next step anyway). Do not commit any changes at
62-
this step and go back to master branch if there is any API changes.
62+
as they will be updated in the next step anyway). Do not commit any changes at
63+
this step and go back to the master branch if there are any API changes.
6364

6465
## Update release tags
6566

66-
Release tags are in scripts/constants.py file. These are the constants you may
67+
Release tags are in the "scripts/constants.py" file. These are the constants you may
6768
need to update:
6869

6970
CLIENT_VERSION: Client version should follow x.y.zDn where x,y,z are version
7071
numbers (integers) and D is one of "a" for alpha or "b" for beta and n is the
71-
pre-release number. For a final release, "Dn" part should be omitted. Examples:
72+
pre-release number. For a final release, the "Dn" part should be omitted. Examples:
7273
1.0.0a1, 2.0.1b2, 1.5.1.
7374

7475
DEVELOPMENT_STATUS: Update it to one of the values of "Development Status"
@@ -89,8 +90,9 @@ git push upstream $RELEASE_BRANCH
8990
```
9091

9192
## Make distribution packages
93+
9294
First make sure you are using a clean version of python. Use virtualenv and
93-
pyenv packages, make sure you are using python 2.7.12. I would normally do this
95+
pyenv packages. Make sure you are using python 2.7.12. I would normally do this
9496
on a clean machine:
9597

9698
(install [pyenv](https://github.com/yyuu/pyenv#installation))
@@ -128,9 +130,9 @@ python setup.py bdist_wheel --universal
128130
ls dist/
129131
```
130132

131-
You should see two files in dist folder. kubernetes\*.whl and kubernetes\*.tar.gz.
133+
You should see two files in dist folder: "kubernetes\*.whl" and "kubernetes\*.tar.gz".
132134

133-
TODO: We need a dry-run option an some way to test package upload process to pypi.
135+
TODO: We need a dry-run option and some way to test the package upload process to pypi.
134136

135137
If everything looks good, run this command to upload packages to pypi:
136138

@@ -142,13 +144,13 @@ twine upload dist/*
142144

143145
Create a gihub release by starting from
144146
[this page](https://github.com/kubernetes-client/python/releases).
145-
Click Deaft new release button. Name the tag the same as CLIENT_VERSION. Change
147+
Click the `Draft a new release button`. Name the tag the same as CLIENT_VERSION. Change
146148
the target branch to "release-x.y". If the release is a pre-release, check the
147149
`This is a pre-release` option.
148150

149-
150151
## Announcement
151-
Send an announcement email to kubernetes-dev@googlegroups.com with the subject [ANNOUNCE] kubernetes python-client $VERSION is released
152+
153+
Send an announcement email to kubernetes-dev@googlegroups.com with the subject: [ANNOUNCE] kubernetes python-client $VERSION is released
152154

153155
## Cleanup
154156

@@ -159,5 +161,4 @@ rm -rf .release
159161

160162
TODO: Convert steps in this document to an (semi-) automated script.
161163

162-
163164
ref: https://packaging.python.org/distributing/

‎devel/stats.md

Copy file name to clipboardExpand all lines: devel/stats.md
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ LIMIT 20
2323
More example queries can be found [here](https://gist.github.com/alex/4f100a9592b05e9b4d63)
2424

2525
Reference: https://mail.python.org/pipermail/distutils-sig/2016-May/028986.html
26-

‎devel/submodules.md

Copy file name to clipboardExpand all lines: devel/submodules.md
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
# Submodules
2+
23
To comply with [client library structure requirement](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/csi-client-structure-proposal.md),
3-
python client base utilities is moved into kubernetes-client/python-base repo. `git submodules` is being used to handle dependency to that repo.
4-
This document will provide basic steps to get submodules work.
4+
python client base utilities is moved into the [kubernetes-client/python-base](https://github.com/kubernetes-client/python-base) repo. `git submodules` is being used to handle dependency to that repo.
5+
This document will provide basic steps to get submodules working.
56

67
# Clone repo
7-
To clone repo, you need to pass `recursive` parameter to make the clone also get submodules:
8+
9+
To clone the repo, you need to pass the `recursive` parameter to make the clone also get submodules:
810

911
```bash
1012
git clone --recursive https://github.com/kubernetes-client/python.git
1113
```
1214

13-
if you already clone repo with no `--recursive` option, you can run this command to get submodules:
15+
if you have already cloned the repo with no `--recursive` option, you can run this command to get submodules:
1416

1517
```bash
1618
git submodule update --init
1719
```
1820

1921
# Update submodule
20-
If you changed kubernetes-client/python-base and want to pull your changes into this repo run this command:
22+
23+
If you changed [kubernetes-client/python-base](https://github.com/kubernetes-client/python-base) and want to pull your changes into this repo run this command:
2124

2225
```bash
2326
git submodule update --remote
2427
```
2528

2629
Once updated, you should create a new PR to commit changes to the repository.
27-

‎kubernetes/README.md

Copy file name to clipboardExpand all lines: kubernetes/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
33

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

6-
- API version: v1.14.1
7-
- Package version: 10.0.0a1
6+
- API version: v1.14.4
7+
- Package version: 10.0.0-snapshot
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

‎kubernetes/client/__init__.py

Copy file name to clipboardExpand all lines: kubernetes/client/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/api_client.py

Copy file name to clipboardExpand all lines: kubernetes/client/api_client.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
66
7-
OpenAPI spec version: v1.14.1
7+
OpenAPI spec version: v1.14.4
88
99
Generated by: https://github.com/swagger-api/swagger-codegen.git
1010
"""

‎kubernetes/client/apis/admissionregistration_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/admissionregistration_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/admissionregistration_v1beta1_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/admissionregistration_v1beta1_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apiextensions_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apiextensions_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apiextensions_v1beta1_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apiextensions_v1beta1_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apiregistration_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apiregistration_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apiregistration_v1_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apiregistration_v1_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apiregistration_v1beta1_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apiregistration_v1beta1_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apis_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apis_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apps_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apps_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apps_v1_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apps_v1_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apps_v1beta1_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apps_v1beta1_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/apps_v1beta2_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/apps_v1beta2_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

‎kubernetes/client/apis/auditregistration_api.py

Copy file name to clipboardExpand all lines: kubernetes/client/apis/auditregistration_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
77
8-
OpenAPI spec version: v1.14.1
8+
OpenAPI spec version: v1.14.4
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.