Skip to content

Commit f9224f3

Browse files
authored
[DPE-3908] Minor version upgrades (#335)
1 parent 5f86ac0 commit f9224f3

37 files changed

+1689
-325
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18+
- run: |
19+
# Workaround for https://github.com/canonical/charmcraft/issues/1389#issuecomment-1880921728
20+
touch requirements.txt
1821
- name: Check libs
1922
uses: canonical/charming-actions/[email protected]
2023
with:

actions.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,21 @@ set-tls-private-key:
4242
internal-key:
4343
type: string
4444
description: The content of private key for internal communications with clients. Content will be auto-generated if this option is not specified.
45+
46+
pre-refresh-check:
47+
description: Check if charm is ready to refresh.
48+
49+
resume-refresh:
50+
description: Refresh remaining units (after you manually verified that refreshed units are healthy).
51+
params:
52+
force:
53+
type: boolean
54+
default: false
55+
description: |
56+
Potential of *data loss* and *downtime*
57+
58+
Force refresh of next unit.
59+
60+
Use to
61+
- force incompatible refresh and/or
62+
- continue refresh if 1+ refreshed units have non-active status

charm_version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

charmcraft.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@
22
# See LICENSE file for licensing details.
33

44
type: "charm"
5+
bases:
6+
- build-on:
7+
- name: "ubuntu"
8+
channel: "22.04"
9+
run-on:
10+
- name: "ubuntu"
11+
channel: "22.04"
512
parts:
613
charm:
14+
charm-strict-dependencies: true
15+
override-build: |
16+
rustup default stable
17+
craftctl default
718
build-snaps:
819
- rustup
920
build-packages:
@@ -17,18 +28,13 @@ parts:
1728
echo 'ERROR: Use "tox run -e build-dev" instead of calling "charmcraft pack" directly' >&2
1829
exit 1
1930
fi
20-
override-build: |
21-
rustup default stable
22-
craftctl default
2331
files:
2432
plugin: dump
2533
source: .
2634
prime:
2735
- charm_internal_version
28-
bases:
29-
- build-on:
30-
- name: "ubuntu"
31-
channel: "22.04"
32-
run-on:
33-
- name: "ubuntu"
34-
channel: "22.04"
36+
- charm_version
37+
- workload_version
38+
override-build: |
39+
rustup default stable
40+
craftctl default

metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ website:
2121
peers:
2222
database-peers:
2323
interface: mongodb-peers
24+
upgrade-version-a:
25+
interface: upgrade
26+
2427
provides:
2528
database:
2629
interface: mongodb_client

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ pyyaml = "^6.0.1"
2222
jinja2 = "^3.1.3"
2323
poetry-core = "^1.9.0"
2424
data-platform-helpers = "^0.1.3"
25+
overrides = "^7.7.0"
26+
lightkube = "^0.15.3"
2527
pyOpenSSL = "^24.2.1"
2628
setuptools = "^72.0.0"
2729

0 commit comments

Comments
 (0)