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'