Skip to content

Commit

Permalink
Add warnings when forcing upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclert-canonical committed Nov 19, 2024
1 parent d94843f commit ff135b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/kubernetes_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,12 @@ def determine_partition() -> int:
# also applicable `if not force`, but is unlikely to happen since all units are
# healthy `if not force`.
message = f"Attempting to upgrade unit {self._partition}"
action_event.set_results({"result": message})
logger.warning(f"Resume upgrade event succeeded: {message}")
else:
message = f"Upgrade resumed. Unit {self._partition} is upgrading next"
action_event.set_results({"result": message})
logger.debug(f"Resume upgrade event succeeded: {message}")
action_event.set_results({"result": message})
logger.debug(f"Resume upgrade event succeeded: {message}")

@property
def authorized(self) -> bool:
Expand Down

0 comments on commit ff135b6

Please sign in to comment.