From b54c0a91ad67c92715c9f8f384437dab87b1fc4c Mon Sep 17 00:00:00 2001 From: vinicvaz Date: Tue, 20 Feb 2024 07:06:10 -0300 Subject: [PATCH] fix k8s operator to allow old pieces without shared storage --- src/domino/VERSION | 2 +- src/domino/custom_operators/k8s_operator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domino/VERSION b/src/domino/VERSION index 899f24fc..f514a2f0 100644 --- a/src/domino/VERSION +++ b/src/domino/VERSION @@ -1 +1 @@ -0.9.0 \ No newline at end of file +0.9.1 \ No newline at end of file diff --git a/src/domino/custom_operators/k8s_operator.py b/src/domino/custom_operators/k8s_operator.py index 128fe4e8..7f7d2c2e 100644 --- a/src/domino/custom_operators/k8s_operator.py +++ b/src/domino/custom_operators/k8s_operator.py @@ -510,7 +510,7 @@ def execute(self, context: Context): ti.xcom_push(key='pod_name', value=self.pod.metadata.name) ti.xcom_push(key='pod_namespace', value=self.pod.metadata.namespace) if self.do_xcom_push: - self._shared_storage_usage_in_bytes = result['_shared_storage_usage_in_bytes'] + self._shared_storage_usage_in_bytes = result.get('_shared_storage_usage_in_bytes', None) return result