From 4a1a7cb8c3b43a8f40185982daaf64bbcbd80d7c Mon Sep 17 00:00:00 2001 From: Artem Babii Date: Tue, 21 May 2024 14:00:46 +0300 Subject: [PATCH] bump_k8s_lib --- images/benji-k8s/k8s-tools/setup.py | 2 +- images/benji-k8s/k8s-tools/src/benji/k8s_tools/kubernetes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/images/benji-k8s/k8s-tools/setup.py b/images/benji-k8s/k8s-tools/setup.py index 1524bd19..80ef3399 100644 --- a/images/benji-k8s/k8s-tools/setup.py +++ b/images/benji-k8s/k8s-tools/setup.py @@ -12,7 +12,7 @@ package_dir={ '': 'src', }, - install_requires=['benji', 'kubernetes>=10.0.0,<11'], + install_requires=['benji', 'kubernetes>=19.15.0'], entry_points=""" [console_scripts] benji-backup-pvc = benji.k8s_tools.scripts.backup_pvc:main diff --git a/images/benji-k8s/k8s-tools/src/benji/k8s_tools/kubernetes.py b/images/benji-k8s/k8s-tools/src/benji/k8s_tools/kubernetes.py index fc03428b..94c9080d 100644 --- a/images/benji-k8s/k8s-tools/src/benji/k8s_tools/kubernetes.py +++ b/images/benji-k8s/k8s-tools/src/benji/k8s_tools/kubernetes.py @@ -144,7 +144,7 @@ def pod_exec(args: List[str], def create_pvc_event(*, type: str, reason: str, message: str, pvc_namespace: str, pvc_name: str, - pvc_uid: str) -> kubernetes.client.models.v1_event.V1Event: + pvc_uid: str) -> kubernetes.client.models.core_v1_event.CoreV1Event: event_name = '{}-{}'.format(benji_instance, str(uuid.uuid4())) # Kubernetes requires a time including microseconds event_time = datetime.datetime.utcnow().isoformat(timespec='microseconds') + 'Z'