Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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"
)
Expand Down
1 change: 0 additions & 1 deletion src/mistral_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ class Status:
IN_PROGRESS = "In Progress"
SUCCESSFUL = "Successful"
FAILED = "Failed"
SUSPENDED = "Suspended"


LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper()
Expand Down
Loading