Skip to content

Commit

Permalink
Merge pull request #1794 from roycaihw/manual-23.6
Browse files Browse the repository at this point in the history
Manual release of 23.6.0
  • Loading branch information
k8s-ci-robot authored May 6, 2022
2 parents afffaff + 0dbfa66 commit 98cd225
Show file tree
Hide file tree
Showing 84 changed files with 239 additions and 954 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v23.6.0

Kubernetes API Version: v1.23.6

### API Change
- 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]
- 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]

# v23.3.0

Kubernetes API Version: v1.23.4
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ supported versions of Kubernetes clusters.
- [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 (+-)
- [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 (+-)
- [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 (+-)
- [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 (+-)
- [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 (+-)

> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
Expand Down Expand Up @@ -130,18 +130,19 @@ between client-python versions.
| 12.0 Alpha/Beta | Kubernetes main repo, 1.16 branch ||
| 12.0 | Kubernetes main repo, 1.16 branch ||
| 17.0 Alpha/Beta | Kubernetes main repo, 1.17 branch ||
| 17.0 | Kubernetes main repo, 1.17 branch | |
| 17.0 | Kubernetes main repo, 1.17 branch | |
| 18.0 Alpha/Beta | Kubernetes main repo, 1.18 branch ||
| 18.0 | Kubernetes main repo, 1.18 branch | |
| 18.0 | Kubernetes main repo, 1.18 branch | |
| 19.0 Alpha/Beta | Kubernetes main repo, 1.19 branch ||
| 19.0 | Kubernetes main repo, 1.19 branch | |
| 19.0 | Kubernetes main repo, 1.19 branch | |
| 20.0 Alpha/Beta | Kubernetes main repo, 1.20 branch ||
| 20.0 | Kubernetes main repo, 1.20 branch | |
| 20.0 | Kubernetes main repo, 1.20 branch | |
| 21.0 Alpha/Beta | Kubernetes main repo, 1.21 branch ||
| 21.0 | Kubernetes main repo, 1.21 branch ||
| 22.0 Alpha/Beta | Kubernetes main repo, 1.22 branch ||
| 22.0 | Kubernetes main repo, 1.22 branch ||
| 23.0 Alpha/Beta | Kubernetes main repo, 1.23 branch ||
| 23.0 Alpha/Beta | Kubernetes main repo, 1.23 branch ||
| 23.0 | Kubernetes main repo, 1.23 branch ||

> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/.openapi-generator/swagger.json.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2c67f8ba62257eed1612aa63351c8a769cb6bac8cf98bb42b91b50c6bf3eb6dc
4376b8bd590324aa604410a7795b8a9b70bfdfa244f8f142c3016a7aec37ffb1
2 changes: 1 addition & 1 deletion kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: release-1.23
- Package version: 23.3.0
- Package version: 23.6.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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

import kubernetes.client
import kubernetes.config
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from __future__ import absolute_import

__version__ = "23.3.0"
__version__ = "23.6.0"

# import apis into sdk package
from kubernetes.client.api.well_known_api import WellKnownApi
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/23.3.0/python'
self.user_agent = 'OpenAPI-Generator/23.6.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: release-1.23\n"\
"SDK Package Version: 23.3.0".\
"SDK Package Version: 23.6.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
10 changes: 2 additions & 8 deletions kubernetes/client/models/core_v1_endpoint_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def port(self, port):
def protocol(self):
"""Gets the protocol of this CoreV1EndpointPort. # noqa: E501
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
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
:return: The protocol of this CoreV1EndpointPort. # noqa: E501
:rtype: str
Expand All @@ -152,17 +152,11 @@ def protocol(self):
def protocol(self, protocol):
"""Sets the protocol of this CoreV1EndpointPort.
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
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
:param protocol: The protocol of this CoreV1EndpointPort. # noqa: E501
:type: str
"""
allowed_values = ["SCTP", "TCP", "UDP"] # noqa: E501
if self.local_vars_configuration.client_side_validation and protocol not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `protocol` ({0}), must be one of {1}" # noqa: E501
.format(protocol, allowed_values)
)

self._protocol = protocol

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def status(self, status):
def type(self):
"""Gets the type of this V1CertificateSigningRequestCondition. # noqa: E501
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
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
:return: The type of this V1CertificateSigningRequestCondition. # noqa: E501
:rtype: str
Expand All @@ -207,19 +207,13 @@ def type(self):
def type(self, type):
"""Sets the type of this V1CertificateSigningRequestCondition.
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
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
:param type: The type of this V1CertificateSigningRequestCondition. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
allowed_values = ["Approved", "Denied", "Failed"] # noqa: E501
if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
.format(type, allowed_values)
)

self._type = type

Expand Down
20 changes: 4 additions & 16 deletions kubernetes/client/models/v1_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def image(self, image):
def image_pull_policy(self):
"""Gets the image_pull_policy of this V1Container. # noqa: E501
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
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
:return: The image_pull_policy of this V1Container. # noqa: E501
:rtype: str
Expand All @@ -286,17 +286,11 @@ def image_pull_policy(self):
def image_pull_policy(self, image_pull_policy):
"""Sets the image_pull_policy of this V1Container.
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
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
:param image_pull_policy: The image_pull_policy of this V1Container. # noqa: E501
:type: str
"""
allowed_values = ["Always", "IfNotPresent", "Never"] # noqa: E501
if self.local_vars_configuration.client_side_validation and image_pull_policy not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `image_pull_policy` ({0}), must be one of {1}" # noqa: E501
.format(image_pull_policy, allowed_values)
)

self._image_pull_policy = image_pull_policy

Expand Down Expand Up @@ -547,7 +541,7 @@ def termination_message_path(self, termination_message_path):
def termination_message_policy(self):
"""Gets the termination_message_policy of this V1Container. # noqa: E501
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
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
:return: The termination_message_policy of this V1Container. # noqa: E501
:rtype: str
Expand All @@ -558,17 +552,11 @@ def termination_message_policy(self):
def termination_message_policy(self, termination_message_policy):
"""Sets the termination_message_policy of this V1Container.
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
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
:param termination_message_policy: The termination_message_policy of this V1Container. # noqa: E501
:type: str
"""
allowed_values = ["FallbackToLogsOnError", "File"] # noqa: E501
if self.local_vars_configuration.client_side_validation and termination_message_policy not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `termination_message_policy` ({0}), must be one of {1}" # noqa: E501
.format(termination_message_policy, allowed_values)
)

self._termination_message_policy = termination_message_policy

Expand Down
10 changes: 2 additions & 8 deletions kubernetes/client/models/v1_container_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def name(self, name):
def protocol(self):
"""Gets the protocol of this V1ContainerPort. # noqa: E501
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
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
:return: The protocol of this V1ContainerPort. # noqa: E501
:rtype: str
Expand All @@ -180,17 +180,11 @@ def protocol(self):
def protocol(self, protocol):
"""Sets the protocol of this V1ContainerPort.
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
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
:param protocol: The protocol of this V1ContainerPort. # noqa: E501
:type: str
"""
allowed_values = ["SCTP", "TCP", "UDP"] # noqa: E501
if self.local_vars_configuration.client_side_validation and protocol not in allowed_values: # noqa: E501
raise ValueError(
"Invalid value for `protocol` ({0}), must be one of {1}" # noqa: E501
.format(protocol, allowed_values)
)

self._protocol = protocol

Expand Down
Loading

0 comments on commit 98cd225

Please sign in to comment.