From 7a34f19bab6e4cdaf72d8c4f8bd747a222d84dbd Mon Sep 17 00:00:00 2001 From: Vadim Zelenevsky Date: Thu, 13 Nov 2025 00:40:59 +0500 Subject: [PATCH] revert suspended state --- src/handler.py | 4 ++-- src/mistral_constants.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/handler.py b/src/handler.py index ecc10fb..27380d8 100644 --- a/src/handler.py +++ b/src/handler.py @@ -159,7 +159,7 @@ def on_update(body, meta, spec, status, old, new, diff, **kwargs): mode = spec.get('disasterRecovery').get('mode', None) if mode == 'standby' or mode == 'disable': kub_helper.update_status( - MC.Status.SUSPENDED, + MC.Status.SUCCESSFUL, f"DR mode is: {mode}", f"Mistral operator skipped reconcile process" ) @@ -261,7 +261,7 @@ def set_disaster_recovery_state(spec, status, namespace, diff, **kwargs): if mode == 'standby' or mode == 'disable': kub_helper.scale_down_mistral_deployments() kub_helper.update_status( - MC.Status.SUSPENDED, + MC.Status.SUCCESSFUL, f"DR mode is: {mode}", f"Mistral operator skipped reconcile process" ) diff --git a/src/mistral_constants.py b/src/mistral_constants.py index 0d3369c..a3cccc6 100644 --- a/src/mistral_constants.py +++ b/src/mistral_constants.py @@ -147,7 +147,6 @@ class Status: IN_PROGRESS = "In Progress" SUCCESSFUL = "Successful" FAILED = "Failed" - SUSPENDED = "Suspended" LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper()