Skip to content

Commit ce36f0b

Browse files
authored
Merge pull request #2503 from yliaog/automated-release-of-35.0.0-upstream-release-35.0-1768440195
Automated release of 35.0.0 upstream release 35.0 1768440195
2 parents 38dfa82 + b2dac4f commit ce36f0b

File tree

11 files changed

+43
-14
lines changed

11 files changed

+43
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v35.0.0
2+
3+
Kubernetes API Version: v1.35.0
4+
5+
16
# v35.0.0b1
27

38
Kubernetes API Version: v1.35.0

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ supported versions of Kubernetes clusters.
104104
- [client 32.y.z](https://pypi.org/project/kubernetes/32.0.1/): Kubernetes 1.31 or below (+-), Kubernetes 1.32 (✓), Kubernetes 1.33 or above (+-)
105105
- [client 33.y.z](https://pypi.org/project/kubernetes/33.1.0/): Kubernetes 1.32 or below (+-), Kubernetes 1.33 (✓), Kubernetes 1.34 or above (+-)
106106
- [client 34.y.z](https://pypi.org/project/kubernetes/34.1.0/): Kubernetes 1.33 or below (+-), Kubernetes 1.34 (✓), Kubernetes 1.35 or above (+-)
107-
- [client 35.y.z](https://pypi.org/project/kubernetes/35.0.0b1/): Kubernetes 1.34 or below (+-), Kubernetes 1.35 (✓), Kubernetes 1.36 or above (+-)
107+
- [client 35.y.z](https://pypi.org/project/kubernetes/35.0.0/): Kubernetes 1.34 or below (+-), Kubernetes 1.35 (✓), Kubernetes 1.36 or above (+-)
108108

109109

110110
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
@@ -173,12 +173,13 @@ between client-python versions.
173173
| 31.0 Alpha/Beta | Kubernetes main repo, 1.31 branch ||
174174
| 31.0 | Kubernetes main repo, 1.31 branch ||
175175
| 32.0 Alpha/Beta | Kubernetes main repo, 1.32 branch ||
176-
| 32.1 | Kubernetes main repo, 1.32 branch | |
176+
| 32.1 | Kubernetes main repo, 1.32 branch | |
177177
| 33.1 Alpha/Beta | Kubernetes main repo, 1.33 branch ||
178178
| 33.1 | Kubernetes main repo, 1.33 branch ||
179179
| 34.1 Alpha/Beta | Kubernetes main repo, 1.34 branch ||
180180
| 34.1 | Kubernetes main repo, 1.34 branch ||
181-
| 35.0 Alpha/Beta | Kubernetes main repo, 1.35 branch ||
181+
| 35.0 Alpha/Beta | Kubernetes main repo, 1.35 branch ||
182+
| 35.0 | Kubernetes main repo, 1.35 branch ||
182183

183184
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
184185

examples/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ installed following the directions
1515

1616
If you find a problem please file an
1717
[issue](https://github.com/kubernetes-client/python/issues).
18+
19+
20+
---
21+
22+
## Running Examples Locally
23+
24+
### Prerequisites
25+
26+
- Python 3.8 or newer
27+
- Kubernetes Python client installed:
28+
```bash
29+
pip install kubernetes

examples/apply_from_dict.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import sys
2+
from kubernetes.client.rest import ApiException
3+
4+
15
from kubernetes import client, config, utils
26
def main():
37
config.load_kube_config()
@@ -6,5 +10,12 @@ def main():
610
example_dict = {'apiVersion': 'apps/v1', 'kind': 'Deployment', 'metadata': {'name': 'k8s-py-client-nginx'}, 'spec': {'selector': {'matchLabels': {'app': 'nginx'}}, 'replicas': 1, 'template': {'metadata': {'labels': {'app': 'nginx'}}, 'spec': {'containers': [{'name': 'nginx', 'image': 'nginx:1.14.2', 'ports': [{'containerPort': 80}]}]}}}}
711
utils.create_from_dict(k8s_client, example_dict)
812

9-
if __name__ == '__main__':
10-
main()
13+
if __name__ == "__main__":
14+
try:
15+
main()
16+
except ApiException as e:
17+
print(f"Kubernetes API error: {e}", file=sys.stderr)
18+
sys.exit(1)
19+
except Exception as e:
20+
print(f"Unexpected error: {e}", file=sys.stderr)
21+
sys.exit(2)

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.35
7-
- Package version: 35.0.0b1
7+
- Package version: 35.0.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__ = "35.0.0b1"
17+
__version__ = "35.0.0"
1818

1919
from . import client
2020
from . import 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__ = "35.0.0b1"
17+
__version__ = "35.0.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/35.0.0b1/python'
81+
self.user_agent = 'OpenAPI-Generator/35.0.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
@@ -364,7 +364,7 @@ def to_debug_report(self):
364364
"OS: {env}\n"\
365365
"Python Version: {pyversion}\n"\
366366
"Version of the API: release-1.35\n"\
367-
"SDK Package Version: 35.0.0b1".\
367+
"SDK Package Version: 35.0.0".\
368368
format(env=sys.platform, pyversion=sys.version)
369369

370370
def get_host_settings(self):

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.35"
1919

2020
# client version for packaging and releasing.
21-
CLIENT_VERSION = "35.0.0b1"
21+
CLIENT_VERSION = "35.0.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

0 commit comments

Comments
 (0)