Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1445b9

Browse files
committed
Merge branch 'master' of github.com:kubernetes-client/python into release-8.0
2 parents 1b97d03 + 3fb2be1 commit f1445b9

File tree

1,267 files changed

+11604
-5435
lines changed

Some content is hidden

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

1,267 files changed

+11604
-5435
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# v8.0.0b1
2+
**Bug Fix:**
3+
- Update ExecProvider to use safe\_get() to tolerate kube-config file that sets
4+
`args: null` and `env: null` [kubernetes-client/python-base#91](https://github.com/kubernetes-client/python-base/pull/91)
5+
- Properly deserialize API server's response when posting a deployment rollback [kubernetes/kubernetes#68909](https://github.com/kubernetes/kubernetes/pull/68909)
6+
7+
**API Change:**
8+
- dry-run: CREATE/UPDATE/PATCH methods now support dryRun parameter [kubernetes/kubernetes#69359](https://github.com/kubernetes/kubernetes/pull/69359)
9+
110
# v8.0.0a1
211
**New Feature:**
312
- Add exec-plugins support in kubeconfig [kubernetes-client/python-base#75](https://github.com/kubernetes-client/python-base/pull/75)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Note: There would be no maintenance for alpha/beta releases except the latest on
137137

138138
## Community, Support, Discussion
139139

140-
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-client/python/issues).
140+
If you have any problem on using the package or any suggestions, please start with reaching the [Kubernetes clients slack channel](https://kubernetes.slack.com/messages/C76GB48RK/), or filing an [issue](https://github.com/kubernetes-client/python/issues) to let us know. You can also reach the maintainers of this project at [SIG API Machinery](https://github.com/kubernetes/community/tree/master/sig-api-machinery).
141141

142142
### Code of Conduct
143143

kubernetes/README.md

Lines 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.12.1
7-
- Package version: 8.0.0a1
6+
- API version: v1.12.2
7+
- Package version: 8.0.0-snapshot
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

kubernetes/client/__init__.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/api_client.py

Lines 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.12.1
7+
OpenAPI spec version: v1.12.2
88
99
Generated by: https://github.com/swagger-api/swagger-codegen.git
1010
"""

kubernetes/client/apis/admissionregistration_api.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/apis/admissionregistration_v1alpha1_api.py

Lines changed: 30 additions & 14 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/admissionregistration_v1beta1_api.py

Lines changed: 59 additions & 27 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/apiextensions_api.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/apis/apiextensions_v1beta1_api.py

Lines changed: 40 additions & 16 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/apiregistration_api.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/apis/apiregistration_v1_api.py

Lines changed: 40 additions & 16 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/apiregistration_v1beta1_api.py

Lines changed: 40 additions & 16 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/apis_api.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/apis/apps_api.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/apis/apps_v1_api.py

Lines changed: 216 additions & 80 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/apps_v1beta1_api.py

Lines changed: 140 additions & 52 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/apps_v1beta2_api.py

Lines changed: 216 additions & 80 deletions
Large diffs are not rendered by default.

kubernetes/client/apis/authentication_api.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/apis/authentication_v1_api.py

Lines changed: 10 additions & 2 deletions
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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -45,6 +45,8 @@ def create_token_review(self, body, **kwargs):
4545
4646
:param async_req bool
4747
:param V1TokenReview body: (required)
48+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
49+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
4850
:param str pretty: If 'true', then the output is pretty printed.
4951
:return: V1TokenReview
5052
If the method is called asynchronously,
@@ -67,13 +69,15 @@ def create_token_review_with_http_info(self, body, **kwargs):
6769
6870
:param async_req bool
6971
:param V1TokenReview body: (required)
72+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
73+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
7074
:param str pretty: If 'true', then the output is pretty printed.
7175
:return: V1TokenReview
7276
If the method is called asynchronously,
7377
returns the request thread.
7478
"""
7579

76-
all_params = ['body', 'pretty']
80+
all_params = ['body', 'dry_run', 'include_uninitialized', 'pretty']
7781
all_params.append('async_req')
7882
all_params.append('_return_http_data_only')
7983
all_params.append('_preload_content')
@@ -98,6 +102,10 @@ def create_token_review_with_http_info(self, body, **kwargs):
98102
path_params = {}
99103

100104
query_params = []
105+
if 'dry_run' in params:
106+
query_params.append(('dryRun', params['dry_run']))
107+
if 'include_uninitialized' in params:
108+
query_params.append(('includeUninitialized', params['include_uninitialized']))
101109
if 'pretty' in params:
102110
query_params.append(('pretty', params['pretty']))
103111

kubernetes/client/apis/authentication_v1beta1_api.py

Lines changed: 10 additions & 2 deletions
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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -45,6 +45,8 @@ def create_token_review(self, body, **kwargs):
4545
4646
:param async_req bool
4747
:param V1beta1TokenReview body: (required)
48+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
49+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
4850
:param str pretty: If 'true', then the output is pretty printed.
4951
:return: V1beta1TokenReview
5052
If the method is called asynchronously,
@@ -67,13 +69,15 @@ def create_token_review_with_http_info(self, body, **kwargs):
6769
6870
:param async_req bool
6971
:param V1beta1TokenReview body: (required)
72+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
73+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
7074
:param str pretty: If 'true', then the output is pretty printed.
7175
:return: V1beta1TokenReview
7276
If the method is called asynchronously,
7377
returns the request thread.
7478
"""
7579

76-
all_params = ['body', 'pretty']
80+
all_params = ['body', 'dry_run', 'include_uninitialized', 'pretty']
7781
all_params.append('async_req')
7882
all_params.append('_return_http_data_only')
7983
all_params.append('_preload_content')
@@ -98,6 +102,10 @@ def create_token_review_with_http_info(self, body, **kwargs):
98102
path_params = {}
99103

100104
query_params = []
105+
if 'dry_run' in params:
106+
query_params.append(('dryRun', params['dry_run']))
107+
if 'include_uninitialized' in params:
108+
query_params.append(('includeUninitialized', params['include_uninitialized']))
101109
if 'pretty' in params:
102110
query_params.append(('pretty', params['pretty']))
103111

kubernetes/client/apis/authorization_api.py

Lines 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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

kubernetes/client/apis/authorization_v1_api.py

Lines changed: 37 additions & 5 deletions
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.12.1
8+
OpenAPI spec version: v1.12.2
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -46,6 +46,8 @@ def create_namespaced_local_subject_access_review(self, namespace, body, **kwarg
4646
:param async_req bool
4747
:param str namespace: object name and auth scope, such as for teams and projects (required)
4848
:param V1LocalSubjectAccessReview body: (required)
49+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
50+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
4951
:param str pretty: If 'true', then the output is pretty printed.
5052
:return: V1LocalSubjectAccessReview
5153
If the method is called asynchronously,
@@ -69,13 +71,15 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace
6971
:param async_req bool
7072
:param str namespace: object name and auth scope, such as for teams and projects (required)
7173
:param V1LocalSubjectAccessReview body: (required)
74+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
75+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
7276
:param str pretty: If 'true', then the output is pretty printed.
7377
:return: V1LocalSubjectAccessReview
7478
If the method is called asynchronously,
7579
returns the request thread.
7680
"""
7781

78-
all_params = ['namespace', 'body', 'pretty']
82+
all_params = ['namespace', 'body', 'dry_run', 'include_uninitialized', 'pretty']
7983
all_params.append('async_req')
8084
all_params.append('_return_http_data_only')
8185
all_params.append('_preload_content')
@@ -105,6 +109,10 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace
105109
path_params['namespace'] = params['namespace']
106110

107111
query_params = []
112+
if 'dry_run' in params:
113+
query_params.append(('dryRun', params['dry_run']))
114+
if 'include_uninitialized' in params:
115+
query_params.append(('includeUninitialized', params['include_uninitialized']))
108116
if 'pretty' in params:
109117
query_params.append(('pretty', params['pretty']))
110118

@@ -152,6 +160,8 @@ def create_self_subject_access_review(self, body, **kwargs):
152160
153161
:param async_req bool
154162
:param V1SelfSubjectAccessReview body: (required)
163+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
164+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
155165
:param str pretty: If 'true', then the output is pretty printed.
156166
:return: V1SelfSubjectAccessReview
157167
If the method is called asynchronously,
@@ -174,13 +184,15 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs):
174184
175185
:param async_req bool
176186
:param V1SelfSubjectAccessReview body: (required)
187+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
188+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
177189
:param str pretty: If 'true', then the output is pretty printed.
178190
:return: V1SelfSubjectAccessReview
179191
If the method is called asynchronously,
180192
returns the request thread.
181193
"""
182194

183-
all_params = ['body', 'pretty']
195+
all_params = ['body', 'dry_run', 'include_uninitialized', 'pretty']
184196
all_params.append('async_req')
185197
all_params.append('_return_http_data_only')
186198
all_params.append('_preload_content')
@@ -205,6 +217,10 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs):
205217
path_params = {}
206218

207219
query_params = []
220+
if 'dry_run' in params:
221+
query_params.append(('dryRun', params['dry_run']))
222+
if 'include_uninitialized' in params:
223+
query_params.append(('includeUninitialized', params['include_uninitialized']))
208224
if 'pretty' in params:
209225
query_params.append(('pretty', params['pretty']))
210226

@@ -252,6 +268,8 @@ def create_self_subject_rules_review(self, body, **kwargs):
252268
253269
:param async_req bool
254270
:param V1SelfSubjectRulesReview body: (required)
271+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
272+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
255273
:param str pretty: If 'true', then the output is pretty printed.
256274
:return: V1SelfSubjectRulesReview
257275
If the method is called asynchronously,
@@ -274,13 +292,15 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs):
274292
275293
:param async_req bool
276294
:param V1SelfSubjectRulesReview body: (required)
295+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
296+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
277297
:param str pretty: If 'true', then the output is pretty printed.
278298
:return: V1SelfSubjectRulesReview
279299
If the method is called asynchronously,
280300
returns the request thread.
281301
"""
282302

283-
all_params = ['body', 'pretty']
303+
all_params = ['body', 'dry_run', 'include_uninitialized', 'pretty']
284304
all_params.append('async_req')
285305
all_params.append('_return_http_data_only')
286306
all_params.append('_preload_content')
@@ -305,6 +325,10 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs):
305325
path_params = {}
306326

307327
query_params = []
328+
if 'dry_run' in params:
329+
query_params.append(('dryRun', params['dry_run']))
330+
if 'include_uninitialized' in params:
331+
query_params.append(('includeUninitialized', params['include_uninitialized']))
308332
if 'pretty' in params:
309333
query_params.append(('pretty', params['pretty']))
310334

@@ -352,6 +376,8 @@ def create_subject_access_review(self, body, **kwargs):
352376
353377
:param async_req bool
354378
:param V1SubjectAccessReview body: (required)
379+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
380+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
355381
:param str pretty: If 'true', then the output is pretty printed.
356382
:return: V1SubjectAccessReview
357383
If the method is called asynchronously,
@@ -374,13 +400,15 @@ def create_subject_access_review_with_http_info(self, body, **kwargs):
374400
375401
:param async_req bool
376402
:param V1SubjectAccessReview body: (required)
403+
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
404+
:param bool include_uninitialized: If IncludeUninitialized is specified, the object may be returned without completing initialization.
377405
:param str pretty: If 'true', then the output is pretty printed.
378406
:return: V1SubjectAccessReview
379407
If the method is called asynchronously,
380408
returns the request thread.
381409
"""
382410

383-
all_params = ['body', 'pretty']
411+
all_params = ['body', 'dry_run', 'include_uninitialized', 'pretty']
384412
all_params.append('async_req')
385413
all_params.append('_return_http_data_only')
386414
all_params.append('_preload_content')
@@ -405,6 +433,10 @@ def create_subject_access_review_with_http_info(self, body, **kwargs):
405433
path_params = {}
406434

407435
query_params = []
436+
if 'dry_run' in params:
437+
query_params.append(('dryRun', params['dry_run']))
438+
if 'include_uninitialized' in params:
439+
query_params.append(('includeUninitialized', params['include_uninitialized']))
408440
if 'pretty' in params:
409441
query_params.append(('pretty', params['pretty']))
410442

0 commit comments

Comments
 (0)