From 89c4fefb3b98e497dd3105bc74e93fa8a12be0f8 Mon Sep 17 00:00:00 2001 From: Aleksandr Seleznev Date: Fri, 16 Sep 2022 17:08:56 +0700 Subject: [PATCH] Upgrade kubernetes client to 24.2.0 Also: * Add policy/v1 API support --- k8s_handle/k8s/adapters.py | 1 + requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/k8s_handle/k8s/adapters.py b/k8s_handle/k8s/adapters.py index bf1e85a..c5091a2 100644 --- a/k8s_handle/k8s/adapters.py +++ b/k8s_handle/k8s/adapters.py @@ -21,6 +21,7 @@ class Adapter: 'v1': client.CoreV1Api, 'batch/v1': client.BatchV1Api, 'batch/v1beta1': client.BatchV1beta1Api, + 'policy/v1': client.PolicyV1Api, 'policy/v1beta1': client.PolicyV1beta1Api, 'storage.k8s.io/v1': client.StorageV1Api, 'apps/v1': client.AppsV1Api, diff --git a/requirements.txt b/requirements.txt index 9a377c4..2e93ee8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ requests==2.28.1 jinja2==3.1.2 PyYAML==5.4.1 -kubernetes==23.6.0 +kubernetes==24.2.0 semver==2.13.0