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()