Skip to content

Commit fb03169

Browse files
Update charm-refresh
1 parent 19e1346 commit fb03169

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

actions.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,58 +3,59 @@
33

44
pre-refresh-check:
55
description: Check if charm is ready to refresh
6+
additionalProperties: false
67
force-refresh-start:
78
description: |
89
Potential of data loss and downtime
9-
10+
1011
Force refresh of first unit
11-
12+
1213
Must run with at least one of the parameters `=false`
1314
params:
1415
check-compatibility:
1516
type: boolean
1617
default: true
1718
description: |
1819
Potential of data loss and downtime
19-
20+
2021
If `false`, force refresh if new version of Router and/or charm is not compatible with previous version
2122
run-pre-refresh-checks:
2223
type: boolean
2324
default: true
2425
description: |
2526
Potential of data loss and downtime
26-
27+
2728
If `false`, force refresh if app is unhealthy or not ready to refresh (and unit status shows "Pre-refresh check failed")
2829
check-workload-container:
2930
type: boolean
3031
default: true
3132
description: |
3233
Potential of data loss and downtime during and after refresh
33-
34+
3435
If `false`, allow refresh to Router container version that has not been validated to work with the charm revision
35-
required: []
36+
additionalProperties: false
3637
resume-refresh:
3738
description: |
3839
Refresh next unit(s) (after you have manually verified that refreshed units are healthy)
39-
40-
If the `pause_after_unit_refresh` config is set to `all`, this action will refresh the next unit.
41-
42-
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.
4344
Exception: if automatic health checks fail after a unit has refreshed, the refresh will pause.
44-
45-
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`.
4647
params:
4748
check-health-of-refreshed-units:
4849
type: boolean
4950
default: true
5051
description: |
5152
Potential of data loss and downtime
52-
53+
5354
If `false`, force refresh (of next unit) if 1 or more refreshed units are unhealthy
54-
55+
5556
Warning: if first unit to refresh is unhealthy, consider running `force-refresh-start` action on that unit instead of using this parameter.
5657
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.
57-
required: []
58+
additionalProperties: false
5859

5960
set-tls-private-key:
6061
description:

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ options:
1616
type: string
1717
default: "{}"
1818

19-
pause_after_unit_refresh:
19+
pause-after-unit-refresh:
2020
description: |
2121
Wait for manual confirmation to resume refresh after these units refresh
2222

poetry.lock

Lines changed: 1 addition & 1 deletion
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
@@ -14,7 +14,7 @@ tenacity = "^9.1.2"
1414
jinja2 = "^3.1.6"
1515
poetry-core = "^2.1.3"
1616
requests = "^2.32.4"
17-
charm-refresh = "^3.0.0.8"
17+
charm-refresh = "^3.1.0.2"
1818

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

0 commit comments

Comments
 (0)