Skip to content

Commit 98cd225

Browse files
authored
Merge pull request #1794 from roycaihw/manual-23.6
Manual release of 23.6.0
2 parents afffaff + 0dbfa66 commit 98cd225

File tree

84 files changed

+239
-954
lines changed

Some content is hidden

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

84 files changed

+239
-954
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# v23.6.0
2+
3+
Kubernetes API Version: v1.23.6
4+
5+
### API Change
6+
- Omits alpha-level enums from the static openapi file captured in api/openapi-spec ([kubernetes/kubernetes#109179](https://github.com/kubernetes/kubernetes/pull/109179), [@liggitt](https://github.com/liggitt)) [SIG Apps and Auth]
7+
- Fixes a regression in v1beta1 PodDisruptionBudget handling of "strategic merge patch"-type API requests for the `selector` field. Prior to 1.21, these requests would merge `matchLabels` content and replace `matchExpressions` content. In 1.21, patch requests touching the `selector` field started replacing the entire selector. This is consistent with server-side apply and the v1 PodDisruptionBudget behavior, but should not have been changed for v1beta1. ([kubernetes/kubernetes#108139](https://github.com/kubernetes/kubernetes/pull/108139), [@liggitt](https://github.com/liggitt)) [SIG Auth and Testing]
8+
19
# v23.3.0
210

311
Kubernetes API Version: v1.23.4

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ supported versions of Kubernetes clusters.
9292
- [client 20.y.z](https://pypi.org/project/kubernetes/20.13.0/): Kubernetes 1.19 or below (+-), Kubernetes 1.20 (✓), Kubernetes 1.21 or above (+-)
9393
- [client 21.y.z](https://pypi.org/project/kubernetes/21.7.0/): Kubernetes 1.20 or below (+-), Kubernetes 1.21 (✓), Kubernetes 1.22 or above (+-)
9494
- [client 22.y.z](https://pypi.org/project/kubernetes/22.6.0/): Kubernetes 1.21 or below (+-), Kubernetes 1.22 (✓), Kubernetes 1.23 or above (+-)
95-
- [client 23.y.z](https://pypi.org/project/kubernetes/23.3.0/): Kubernetes 1.22 or below (+-), Kubernetes 1.23 (✓), Kubernetes 1.24 or above (+-)
95+
- [client 23.y.z](https://pypi.org/project/kubernetes/23.6.0/): Kubernetes 1.22 or below (+-), Kubernetes 1.23 (✓), Kubernetes 1.24 or above (+-)
9696

9797
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
9898
@@ -130,18 +130,19 @@ between client-python versions.
130130
| 12.0 Alpha/Beta | Kubernetes main repo, 1.16 branch ||
131131
| 12.0 | Kubernetes main repo, 1.16 branch ||
132132
| 17.0 Alpha/Beta | Kubernetes main repo, 1.17 branch ||
133-
| 17.0 | Kubernetes main repo, 1.17 branch | |
133+
| 17.0 | Kubernetes main repo, 1.17 branch | |
134134
| 18.0 Alpha/Beta | Kubernetes main repo, 1.18 branch ||
135-
| 18.0 | Kubernetes main repo, 1.18 branch | |
135+
| 18.0 | Kubernetes main repo, 1.18 branch | |
136136
| 19.0 Alpha/Beta | Kubernetes main repo, 1.19 branch ||
137-
| 19.0 | Kubernetes main repo, 1.19 branch | |
137+
| 19.0 | Kubernetes main repo, 1.19 branch | |
138138
| 20.0 Alpha/Beta | Kubernetes main repo, 1.20 branch ||
139-
| 20.0 | Kubernetes main repo, 1.20 branch | |
139+
| 20.0 | Kubernetes main repo, 1.20 branch | |
140140
| 21.0 Alpha/Beta | Kubernetes main repo, 1.21 branch ||
141141
| 21.0 | Kubernetes main repo, 1.21 branch ||
142142
| 22.0 Alpha/Beta | Kubernetes main repo, 1.22 branch ||
143143
| 22.0 | Kubernetes main repo, 1.22 branch ||
144-
| 23.0 Alpha/Beta | Kubernetes main repo, 1.23 branch ||
144+
| 23.0 Alpha/Beta | Kubernetes main repo, 1.23 branch ||
145+
| 23.0 | Kubernetes main repo, 1.23 branch ||
145146

146147
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
147148
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2c67f8ba62257eed1612aa63351c8a769cb6bac8cf98bb42b91b50c6bf3eb6dc
1+
4376b8bd590324aa604410a7795b8a9b70bfdfa244f8f142c3016a7aec37ffb1

kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: release-1.23
7-
- Package version: 23.3.0
7+
- Package version: 23.6.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

kubernetes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
__project__ = 'kubernetes'
1616
# The version is auto-updated. Please do not edit.
17-
__version__ = "23.3.0"
17+
__version__ = "23.6.0"
1818

1919
import kubernetes.client
2020
import kubernetes.config

kubernetes/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "23.3.0"
17+
__version__ = "23.6.0"
1818

1919
# import apis into sdk package
2020
from kubernetes.client.api.well_known_api import WellKnownApi

kubernetes/client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7878
self.default_headers[header_name] = header_value
7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/23.3.0/python'
81+
self.user_agent = 'OpenAPI-Generator/23.6.0/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

kubernetes/client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def to_debug_report(self):
350350
"OS: {env}\n"\
351351
"Python Version: {pyversion}\n"\
352352
"Version of the API: release-1.23\n"\
353-
"SDK Package Version: 23.3.0".\
353+
"SDK Package Version: 23.6.0".\
354354
format(env=sys.platform, pyversion=sys.version)
355355

356356
def get_host_settings(self):

kubernetes/client/models/core_v1_endpoint_port.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def port(self, port):
141141
def protocol(self):
142142
"""Gets the protocol of this CoreV1EndpointPort. # noqa: E501
143143
144-
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
144+
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
145145
146146
:return: The protocol of this CoreV1EndpointPort. # noqa: E501
147147
:rtype: str
@@ -152,17 +152,11 @@ def protocol(self):
152152
def protocol(self, protocol):
153153
"""Sets the protocol of this CoreV1EndpointPort.
154154
155-
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
155+
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
156156
157157
:param protocol: The protocol of this CoreV1EndpointPort. # noqa: E501
158158
:type: str
159159
"""
160-
allowed_values = ["SCTP", "TCP", "UDP"] # noqa: E501
161-
if self.local_vars_configuration.client_side_validation and protocol not in allowed_values: # noqa: E501
162-
raise ValueError(
163-
"Invalid value for `protocol` ({0}), must be one of {1}" # noqa: E501
164-
.format(protocol, allowed_values)
165-
)
166160

167161
self._protocol = protocol
168162

kubernetes/client/models/v1_certificate_signing_request_condition.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def status(self, status):
196196
def type(self):
197197
"""Gets the type of this V1CertificateSigningRequestCondition. # noqa: E501
198198
199-
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. Possible enum values: - `\"Approved\"` Approved indicates the request was approved and should be issued by the signer. - `\"Denied\"` Denied indicates the request was denied and should not be issued by the signer. - `\"Failed\"` Failed indicates the signer failed to issue the certificate. # noqa: E501
199+
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. # noqa: E501
200200
201201
:return: The type of this V1CertificateSigningRequestCondition. # noqa: E501
202202
:rtype: str
@@ -207,19 +207,13 @@ def type(self):
207207
def type(self, type):
208208
"""Sets the type of this V1CertificateSigningRequestCondition.
209209
210-
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. Possible enum values: - `\"Approved\"` Approved indicates the request was approved and should be issued by the signer. - `\"Denied\"` Denied indicates the request was denied and should not be issued by the signer. - `\"Failed\"` Failed indicates the signer failed to issue the certificate. # noqa: E501
210+
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. # noqa: E501
211211
212212
:param type: The type of this V1CertificateSigningRequestCondition. # noqa: E501
213213
:type: str
214214
"""
215215
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
216216
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
217-
allowed_values = ["Approved", "Denied", "Failed"] # noqa: E501
218-
if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501
219-
raise ValueError(
220-
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
221-
.format(type, allowed_values)
222-
)
223217

224218
self._type = type
225219

kubernetes/client/models/v1_container.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def image(self, image):
275275
def image_pull_policy(self):
276276
"""Gets the image_pull_policy of this V1Container. # noqa: E501
277277
278-
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present # noqa: E501
278+
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
279279
280280
:return: The image_pull_policy of this V1Container. # noqa: E501
281281
:rtype: str
@@ -286,17 +286,11 @@ def image_pull_policy(self):
286286
def image_pull_policy(self, image_pull_policy):
287287
"""Sets the image_pull_policy of this V1Container.
288288
289-
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present # noqa: E501
289+
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
290290
291291
:param image_pull_policy: The image_pull_policy of this V1Container. # noqa: E501
292292
:type: str
293293
"""
294-
allowed_values = ["Always", "IfNotPresent", "Never"] # noqa: E501
295-
if self.local_vars_configuration.client_side_validation and image_pull_policy not in allowed_values: # noqa: E501
296-
raise ValueError(
297-
"Invalid value for `image_pull_policy` ({0}), must be one of {1}" # noqa: E501
298-
.format(image_pull_policy, allowed_values)
299-
)
300294

301295
self._image_pull_policy = image_pull_policy
302296

@@ -547,7 +541,7 @@ def termination_message_path(self, termination_message_path):
547541
def termination_message_policy(self):
548542
"""Gets the termination_message_policy of this V1Container. # noqa: E501
549543
550-
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. Possible enum values: - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents. - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits. # noqa: E501
544+
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
551545
552546
:return: The termination_message_policy of this V1Container. # noqa: E501
553547
:rtype: str
@@ -558,17 +552,11 @@ def termination_message_policy(self):
558552
def termination_message_policy(self, termination_message_policy):
559553
"""Sets the termination_message_policy of this V1Container.
560554
561-
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. Possible enum values: - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents. - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits. # noqa: E501
555+
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
562556
563557
:param termination_message_policy: The termination_message_policy of this V1Container. # noqa: E501
564558
:type: str
565559
"""
566-
allowed_values = ["FallbackToLogsOnError", "File"] # noqa: E501
567-
if self.local_vars_configuration.client_side_validation and termination_message_policy not in allowed_values: # noqa: E501
568-
raise ValueError(
569-
"Invalid value for `termination_message_policy` ({0}), must be one of {1}" # noqa: E501
570-
.format(termination_message_policy, allowed_values)
571-
)
572560

573561
self._termination_message_policy = termination_message_policy
574562

kubernetes/client/models/v1_container_port.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def name(self, name):
169169
def protocol(self):
170170
"""Gets the protocol of this V1ContainerPort. # noqa: E501
171171
172-
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
172+
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
173173
174174
:return: The protocol of this V1ContainerPort. # noqa: E501
175175
:rtype: str
@@ -180,17 +180,11 @@ def protocol(self):
180180
def protocol(self, protocol):
181181
"""Sets the protocol of this V1ContainerPort.
182182
183-
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
183+
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
184184
185185
:param protocol: The protocol of this V1ContainerPort. # noqa: E501
186186
:type: str
187187
"""
188-
allowed_values = ["SCTP", "TCP", "UDP"] # noqa: E501
189-
if self.local_vars_configuration.client_side_validation and protocol not in allowed_values: # noqa: E501
190-
raise ValueError(
191-
"Invalid value for `protocol` ({0}), must be one of {1}" # noqa: E501
192-
.format(protocol, allowed_values)
193-
)
194188

195189
self._protocol = protocol
196190

0 commit comments

Comments
 (0)