Skip to content

Commit e884070

Browse files
authored
Merge pull request #1937 from yliaog/automated-release-of-25.3.0-upstream-release-25.0-1666740937
Automated release of 25.3.0 upstream release 25.0 1666740937
2 parents 73b51ec + 03d2958 commit e884070

File tree

13 files changed

+258
-13
lines changed

13 files changed

+258
-13
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v25.3.0
2+
3+
Kubernetes API Version: v1.25.3
4+
5+
### Feature
6+
- Adds support for loading CA certificates from a file using the `idp-certificate-authority` key for the oidc plugin. (#1916, @vgupta3)
7+
18
# v25.3.0b1
29

310
Kubernetes API Version: v1.25.3

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ supported versions of Kubernetes clusters.
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 (+-)
9595
- [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
- [client 24.y.z](https://pypi.org/project/kubernetes/24.2.0/): Kubernetes 1.23 or below (+-), Kubernetes 1.24 (✓), Kubernetes 1.25 or above (+-)
97-
- [client 25.y.z](https://pypi.org/project/kubernetes/25.3.0b1/): Kubernetes 1.24 or below (+-), Kubernetes 1.25 (✓), Kubernetes 1.26 or above (+-)
97+
- [client 25.y.z](https://pypi.org/project/kubernetes/25.3.0/): Kubernetes 1.24 or below (+-), Kubernetes 1.25 (✓), Kubernetes 1.26 or above (+-)
9898

9999
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
100100
@@ -142,12 +142,13 @@ between client-python versions.
142142
| 21.0 Alpha/Beta | Kubernetes main repo, 1.21 branch ||
143143
| 21.0 | Kubernetes main repo, 1.21 branch ||
144144
| 22.0 Alpha/Beta | Kubernetes main repo, 1.22 branch ||
145-
| 22.0 | Kubernetes main repo, 1.22 branch | |
145+
| 22.0 | Kubernetes main repo, 1.22 branch | |
146146
| 23.0 Alpha/Beta | Kubernetes main repo, 1.23 branch ||
147147
| 23.0 | Kubernetes main repo, 1.23 branch ||
148148
| 24.0 Alpha/Beta | Kubernetes main repo, 1.24 branch ||
149149
| 24.0 | Kubernetes main repo, 1.24 branch ||
150-
| 25.0 Alpha/Beta | Kubernetes main repo, 1.25 branch ||
150+
| 25.0 Alpha/Beta | Kubernetes main repo, 1.25 branch ||
151+
| 25.0 | Kubernetes main repo, 1.25 branch ||
151152

152153
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
153154
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
32d8e8aca85c7267307b37bf60cf99de68d8375371e641d975d111d1b17e2e8b
1+
438073e9d3561c067c312a52fe1c1082abb45407757f52b79be344992edc2da6

kubernetes/README.md

Lines changed: 2 additions & 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.25
7-
- Package version: 25.3.0b1
7+
- Package version: 25.3.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -491,6 +491,7 @@ Class | Method | HTTP request | Description
491491
*CustomObjectsApi* | [**delete_collection_cluster_custom_object**](docs/CustomObjectsApi.md#delete_collection_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} |
492492
*CustomObjectsApi* | [**delete_collection_namespaced_custom_object**](docs/CustomObjectsApi.md#delete_collection_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} |
493493
*CustomObjectsApi* | [**delete_namespaced_custom_object**](docs/CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} |
494+
*CustomObjectsApi* | [**get_api_resources**](docs/CustomObjectsApi.md#get_api_resources) | **GET** /apis/{group}/{version} |
494495
*CustomObjectsApi* | [**get_cluster_custom_object**](docs/CustomObjectsApi.md#get_cluster_custom_object) | **GET** /apis/{group}/{version}/{plural}/{name} |
495496
*CustomObjectsApi* | [**get_cluster_custom_object_scale**](docs/CustomObjectsApi.md#get_cluster_custom_object_scale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale |
496497
*CustomObjectsApi* | [**get_cluster_custom_object_status**](docs/CustomObjectsApi.md#get_cluster_custom_object_status) | **GET** /apis/{group}/{version}/{plural}/{name}/status |

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__ = "25.3.0b1"
17+
__version__ = "25.3.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__ = "25.3.0b1"
17+
__version__ = "25.3.0"
1818

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

kubernetes/client/api/custom_objects_api.py

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,129 @@ def delete_namespaced_custom_object_with_http_info(self, group, version, namespa
10311031
_request_timeout=local_var_params.get('_request_timeout'),
10321032
collection_formats=collection_formats)
10331033

1034+
def get_api_resources(self, group, version, **kwargs): # noqa: E501
1035+
"""get_api_resources # noqa: E501
1036+
1037+
get available resources # noqa: E501
1038+
This method makes a synchronous HTTP request by default. To make an
1039+
asynchronous HTTP request, please pass async_req=True
1040+
>>> thread = api.get_api_resources(group, version, async_req=True)
1041+
>>> result = thread.get()
1042+
1043+
:param async_req bool: execute request asynchronously
1044+
:param str group: The custom resource's group name (required)
1045+
:param str version: The custom resource's version (required)
1046+
:param _preload_content: if False, the urllib3.HTTPResponse object will
1047+
be returned without reading/decoding response
1048+
data. Default is True.
1049+
:param _request_timeout: timeout setting for this request. If one
1050+
number provided, it will be total request
1051+
timeout. It can also be a pair (tuple) of
1052+
(connection, read) timeouts.
1053+
:return: V1APIResourceList
1054+
If the method is called asynchronously,
1055+
returns the request thread.
1056+
"""
1057+
kwargs['_return_http_data_only'] = True
1058+
return self.get_api_resources_with_http_info(group, version, **kwargs) # noqa: E501
1059+
1060+
def get_api_resources_with_http_info(self, group, version, **kwargs): # noqa: E501
1061+
"""get_api_resources # noqa: E501
1062+
1063+
get available resources # noqa: E501
1064+
This method makes a synchronous HTTP request by default. To make an
1065+
asynchronous HTTP request, please pass async_req=True
1066+
>>> thread = api.get_api_resources_with_http_info(group, version, async_req=True)
1067+
>>> result = thread.get()
1068+
1069+
:param async_req bool: execute request asynchronously
1070+
:param str group: The custom resource's group name (required)
1071+
:param str version: The custom resource's version (required)
1072+
:param _return_http_data_only: response data without head status code
1073+
and headers
1074+
:param _preload_content: if False, the urllib3.HTTPResponse object will
1075+
be returned without reading/decoding response
1076+
data. Default is True.
1077+
:param _request_timeout: timeout setting for this request. If one
1078+
number provided, it will be total request
1079+
timeout. It can also be a pair (tuple) of
1080+
(connection, read) timeouts.
1081+
:return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
1082+
If the method is called asynchronously,
1083+
returns the request thread.
1084+
"""
1085+
1086+
local_var_params = locals()
1087+
1088+
all_params = [
1089+
'group',
1090+
'version'
1091+
]
1092+
all_params.extend(
1093+
[
1094+
'async_req',
1095+
'_return_http_data_only',
1096+
'_preload_content',
1097+
'_request_timeout'
1098+
]
1099+
)
1100+
1101+
for key, val in six.iteritems(local_var_params['kwargs']):
1102+
if key not in all_params:
1103+
raise ApiTypeError(
1104+
"Got an unexpected keyword argument '%s'"
1105+
" to method get_api_resources" % key
1106+
)
1107+
local_var_params[key] = val
1108+
del local_var_params['kwargs']
1109+
# verify the required parameter 'group' is set
1110+
if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501
1111+
local_var_params['group'] is None): # noqa: E501
1112+
raise ApiValueError("Missing the required parameter `group` when calling `get_api_resources`") # noqa: E501
1113+
# verify the required parameter 'version' is set
1114+
if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501
1115+
local_var_params['version'] is None): # noqa: E501
1116+
raise ApiValueError("Missing the required parameter `version` when calling `get_api_resources`") # noqa: E501
1117+
1118+
collection_formats = {}
1119+
1120+
path_params = {}
1121+
if 'group' in local_var_params:
1122+
path_params['group'] = local_var_params['group'] # noqa: E501
1123+
if 'version' in local_var_params:
1124+
path_params['version'] = local_var_params['version'] # noqa: E501
1125+
1126+
query_params = []
1127+
1128+
header_params = {}
1129+
1130+
form_params = []
1131+
local_var_files = {}
1132+
1133+
body_params = None
1134+
# HTTP header `Accept`
1135+
header_params['Accept'] = self.api_client.select_header_accept(
1136+
['application/json']) # noqa: E501
1137+
1138+
# Authentication setting
1139+
auth_settings = ['BearerToken'] # noqa: E501
1140+
1141+
return self.api_client.call_api(
1142+
'/apis/{group}/{version}', 'GET',
1143+
path_params,
1144+
query_params,
1145+
header_params,
1146+
body=body_params,
1147+
post_params=form_params,
1148+
files=local_var_files,
1149+
response_type='V1APIResourceList', # noqa: E501
1150+
auth_settings=auth_settings,
1151+
async_req=local_var_params.get('async_req'),
1152+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
1153+
_preload_content=local_var_params.get('_preload_content', True),
1154+
_request_timeout=local_var_params.get('_request_timeout'),
1155+
collection_formats=collection_formats)
1156+
10341157
def get_cluster_custom_object(self, group, version, plural, name, **kwargs): # noqa: E501
10351158
"""get_cluster_custom_object # noqa: E501
10361159

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/25.3.0b1/python'
81+
self.user_agent = 'OpenAPI-Generator/25.3.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.25\n"\
353-
"SDK Package Version: 25.3.0b1".\
353+
"SDK Package Version: 25.3.0".\
354354
format(env=sys.platform, pyversion=sys.version)
355355

356356
def get_host_settings(self):

kubernetes/docs/CustomObjectsApi.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Method | HTTP request | Description
1010
[**delete_collection_cluster_custom_object**](CustomObjectsApi.md#delete_collection_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} |
1111
[**delete_collection_namespaced_custom_object**](CustomObjectsApi.md#delete_collection_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} |
1212
[**delete_namespaced_custom_object**](CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} |
13+
[**get_api_resources**](CustomObjectsApi.md#get_api_resources) | **GET** /apis/{group}/{version} |
1314
[**get_cluster_custom_object**](CustomObjectsApi.md#get_cluster_custom_object) | **GET** /apis/{group}/{version}/{plural}/{name} |
1415
[**get_cluster_custom_object_scale**](CustomObjectsApi.md#get_cluster_custom_object_scale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale |
1516
[**get_cluster_custom_object_status**](CustomObjectsApi.md#get_cluster_custom_object_status) | **GET** /apis/{group}/{version}/{plural}/{name}/status |
@@ -516,6 +517,73 @@ Name | Type | Description | Notes
516517

517518
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
518519

520+
# **get_api_resources**
521+
> V1APIResourceList get_api_resources(group, version)
522+
523+
524+
525+
get available resources
526+
527+
### Example
528+
529+
* Api Key Authentication (BearerToken):
530+
```python
531+
from __future__ import print_function
532+
import time
533+
import kubernetes.client
534+
from kubernetes.client.rest import ApiException
535+
from pprint import pprint
536+
configuration = kubernetes.client.Configuration()
537+
# Configure API key authorization: BearerToken
538+
configuration.api_key['authorization'] = 'YOUR_API_KEY'
539+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
540+
# configuration.api_key_prefix['authorization'] = 'Bearer'
541+
542+
# Defining host is optional and default to http://localhost
543+
configuration.host = "http://localhost"
544+
545+
# Enter a context with an instance of the API kubernetes.client
546+
with kubernetes.client.ApiClient(configuration) as api_client:
547+
# Create an instance of the API class
548+
api_instance = kubernetes.client.CustomObjectsApi(api_client)
549+
group = 'group_example' # str | The custom resource's group name
550+
version = 'version_example' # str | The custom resource's version
551+
552+
try:
553+
api_response = api_instance.get_api_resources(group, version)
554+
pprint(api_response)
555+
except ApiException as e:
556+
print("Exception when calling CustomObjectsApi->get_api_resources: %s\n" % e)
557+
```
558+
559+
### Parameters
560+
561+
Name | Type | Description | Notes
562+
------------- | ------------- | ------------- | -------------
563+
**group** | **str**| The custom resource's group name |
564+
**version** | **str**| The custom resource's version |
565+
566+
### Return type
567+
568+
[**V1APIResourceList**](V1APIResourceList.md)
569+
570+
### Authorization
571+
572+
[BearerToken](../README.md#BearerToken)
573+
574+
### HTTP request headers
575+
576+
- **Content-Type**: Not defined
577+
- **Accept**: application/json
578+
579+
### HTTP response details
580+
| Status code | Description | Response headers |
581+
|-------------|-------------|------------------|
582+
**200** | OK | - |
583+
**401** | Unauthorized | - |
584+
585+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
586+
519587
# **get_cluster_custom_object**
520588
> object get_cluster_custom_object(group, version, plural, name)
521589

scripts/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
KUBERNETES_BRANCH = "release-1.25"
1919

2020
# client version for packaging and releasing.
21-
CLIENT_VERSION = "25.3.0b1"
21+
CLIENT_VERSION = "25.3.0"
2222

2323
# Name of the release package
2424
PACKAGE_NAME = "kubernetes"
2525

2626
# Stage of development, mainly used in setup.py's classifiers.
27-
DEVELOPMENT_STATUS = "4 - Beta"
27+
DEVELOPMENT_STATUS = "5 - Production/Stable"
2828

2929

3030
# If called directly, return the constant value given

scripts/swagger.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76815,6 +76815,51 @@
7681576815
]
7681676816
}
7681776817
},
76818+
"/apis/{group}/{version}": {
76819+
"parameters": [
76820+
{
76821+
"name": "group",
76822+
"in": "path",
76823+
"required": true,
76824+
"description": "The custom resource's group name",
76825+
"type": "string"
76826+
},
76827+
{
76828+
"name": "version",
76829+
"in": "path",
76830+
"required": true,
76831+
"description": "The custom resource's version",
76832+
"type": "string"
76833+
}
76834+
],
76835+
"get": {
76836+
"operationId": "getAPIResources",
76837+
"description": "get available resources",
76838+
"tags": [
76839+
"custom_objects"
76840+
],
76841+
"consumes": [
76842+
"*/*"
76843+
],
76844+
"produces": [
76845+
"application/json"
76846+
],
76847+
"schemes": [
76848+
"https"
76849+
],
76850+
"responses": {
76851+
"200": {
76852+
"description": "OK",
76853+
"schema": {
76854+
"$ref": "#/definitions/v1.APIResourceList"
76855+
}
76856+
},
76857+
"401": {
76858+
"description": "Unauthorized"
76859+
}
76860+
}
76861+
}
76862+
},
7681876863
"/apis/{group}/{version}/{plural}": {
7681976864
"parameters": [
7682076865
{

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
# Do not edit these constants. They will be updated automatically
1818
# by scripts/update-client.sh.
19-
CLIENT_VERSION = "25.3.0b1"
19+
CLIENT_VERSION = "25.3.0"
2020
PACKAGE_NAME = "kubernetes"
21-
DEVELOPMENT_STATUS = "4 - Beta"
21+
DEVELOPMENT_STATUS = "5 - Production/Stable"
2222

2323
# To install the library, run the following
2424
#

0 commit comments

Comments
 (0)