Skip to content

Commit

Permalink
Add default value for resume-upgrade parameter (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical authored Apr 22, 2024
1 parent effd9cc commit 6a85213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resume-upgrade:
params:
force:
type: boolean
default: false
description: Force upgrade of next unit if an upgraded unit has non-active status.
required: []
set-tls-private-key:
Expand Down
2 changes: 1 addition & 1 deletion src/kubernetes_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def reconcile_partition(self, *, action_event: ops.ActionEvent = None) -> None:
- confirm first upgraded unit is healthy and resume upgrade
- force upgrade of next unit if 1 or more upgraded units are unhealthy
"""
force = bool(action_event and action_event.params.get("force") is True)
force = bool(action_event and action_event.params["force"] is True)

units = self._sorted_units

Expand Down

0 comments on commit 6a85213

Please sign in to comment.