diff --git a/scripts/core_v1_api.diff b/scripts/core_v1_api.diff new file mode 100644 index 000000000..f092383e5 --- /dev/null +++ b/scripts/core_v1_api.diff @@ -0,0 +1,16 @@ +diff --git a/kubernetes/client/api/core_v1_api.py b/kubernetes/client/api/core_v1_api.py +index 282d9b88..8de09a11 100644 +--- a/kubernetes/client/api/core_v1_api.py ++++ b/kubernetes/client/api/core_v1_api.py +@@ -13680,7 +13680,10 @@ class CoreV1Api(object): + del local_var_params['kwargs'] + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 +- local_var_params['name'] is None): # noqa: E501 ++ local_var_params['name'] is None or # noqa: E501 ++ not len(local_var_params['name'].strip())): # noqa: E501 ++ raise ApiValueError("Missing the required parameter `name` when calling `delete_node`") # noqa: E501 ++ if not len(name): + raise ApiValueError("Missing the required parameter `name` when calling `delete_node`") # noqa: E501 + + collection_formats = {} diff --git a/scripts/update-client.sh b/scripts/update-client.sh index b6f12a3cd..af4f987b9 100755 --- a/scripts/update-client.sh +++ b/scripts/update-client.sh @@ -80,6 +80,8 @@ git apply "${SCRIPT_ROOT}/rest_client_patch.diff" git apply "${SCRIPT_ROOT}/rest_sni_patch.diff" # OpenAPI client generator prior to 6.4.0 uses deprecated urllib3 APIs. git apply "${SCRIPT_ROOT}/rest_urllib_headers.diff" +# Delete Node fix for empty string +git apply "${SCRIPT_ROOT}/core_v1_api.diff" echo ">>> generating docs..." pushd "${DOC_ROOT}" > /dev/null