Skip to content

Commit 48380cf

Browse files
Update charm-refresh to v3.1.0.0 (#279)
Followed instructions at https://chat.canonical.com/canonical/pl/wm3d1h6rhi8jumwmecyairoq7c UI change: `pause_after_unit_refresh` renamed to `pause-after-unit-refresh`. Breaking change but no stable release currently exists
1 parent b5809b7 commit 48380cf

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

actions.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,52 @@ pre-refresh-check:
77
force-refresh-start:
88
description: |
99
Potential of data loss and downtime
10-
10+
1111
Force refresh of first unit
12-
12+
1313
Must run with at least one of the parameters `=false`
1414
params:
1515
check-compatibility:
1616
type: boolean
1717
default: true
1818
description: |
1919
Potential of data loss and downtime
20-
20+
2121
If `false`, force refresh if new version of Router and/or charm is not compatible with previous version
2222
run-pre-refresh-checks:
2323
type: boolean
2424
default: true
2525
description: |
2626
Potential of data loss and downtime
27-
27+
2828
If `false`, force refresh if app is unhealthy or not ready to refresh (and unit status shows "Pre-refresh check failed")
2929
check-workload-container:
3030
type: boolean
3131
default: true
3232
description: |
3333
Potential of data loss and downtime during and after refresh
34-
34+
3535
If `false`, allow refresh to Router container version that has not been validated to work with the charm revision
3636
additionalProperties: false
3737
resume-refresh:
3838
description: |
3939
Refresh next unit(s) (after you have manually verified that refreshed units are healthy)
40-
41-
If the `pause_after_unit_refresh` config is set to `all`, this action will refresh the next unit.
42-
43-
If `pause_after_unit_refresh` is set to `first`, this action will refresh all remaining units.
40+
41+
If the `pause-after-unit-refresh` config is set to `all`, this action will refresh the next unit.
42+
43+
If `pause-after-unit-refresh` is set to `first`, this action will refresh all remaining units.
4444
Exception: if automatic health checks fail after a unit has refreshed, the refresh will pause.
45-
46-
If `pause_after_unit_refresh` is set to `none`, this action will have no effect unless it is called with `check-health-of-refreshed-units` as `false`.
45+
46+
If `pause-after-unit-refresh` is set to `none`, this action will have no effect unless it is called with `check-health-of-refreshed-units` as `false`.
4747
params:
4848
check-health-of-refreshed-units:
4949
type: boolean
5050
default: true
5151
description: |
5252
Potential of data loss and downtime
53-
53+
5454
If `false`, force refresh (of next unit) if 1 or more refreshed units are unhealthy
55-
55+
5656
Warning: if first unit to refresh is unhealthy, consider running `force-refresh-start` action on that unit instead of using this parameter.
5757
If first unit to refresh is unhealthy because compatibility checks, pre-refresh checks, or workload container checks are failing, this parameter is more destructive than the `force-refresh-start` action.
5858
additionalProperties: false

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ options:
66
description: |
77
Virtual IP to use to front mysql router units. Used only in case of external node connection.
88
type: string
9-
pause_after_unit_refresh:
9+
pause-after-unit-refresh:
1010
description: |
1111
Wait for manual confirmation to resume refresh after these units refresh
1212

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tenacity = "^9.1.2"
1313
poetry-core = "^2.1.3"
1414
jinja2 = "^3.1.6"
1515
requests = "^2.32.4"
16-
charm-refresh = "^3.0.0.6"
16+
charm-refresh = "^3.1.0.0"
1717

1818
[tool.poetry.group.charm-libs.dependencies]
1919
# data_platform_libs/v0/data_interfaces.py

0 commit comments

Comments
 (0)