Skip to content

Commit

Permalink
[DPE-3908] Minor version upgrades (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness authored Oct 17, 2024
1 parent 5f86ac0 commit f9224f3
Show file tree
Hide file tree
Showing 37 changed files with 1,689 additions and 325 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
# Workaround for https://github.com/canonical/charmcraft/issues/1389#issuecomment-1880921728
touch requirements.txt
- name: Check libs
uses: canonical/charming-actions/[email protected]
with:
Expand Down
18 changes: 18 additions & 0 deletions actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,21 @@ set-tls-private-key:
internal-key:
type: string
description: The content of private key for internal communications with clients. Content will be auto-generated if this option is not specified.

pre-refresh-check:
description: Check if charm is ready to refresh.

resume-refresh:
description: Refresh remaining units (after you manually verified that refreshed units are healthy).
params:
force:
type: boolean
default: false
description: |
Potential of *data loss* and *downtime*
Force refresh of next unit.
Use to
- force incompatible refresh and/or
- continue refresh if 1+ refreshed units have non-active status
1 change: 1 addition & 0 deletions charm_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
26 changes: 16 additions & 10 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@
# See LICENSE file for licensing details.

type: "charm"
bases:
- build-on:
- name: "ubuntu"
channel: "22.04"
run-on:
- name: "ubuntu"
channel: "22.04"
parts:
charm:
charm-strict-dependencies: true
override-build: |
rustup default stable
craftctl default
build-snaps:
- rustup
build-packages:
Expand All @@ -17,18 +28,13 @@ parts:
echo 'ERROR: Use "tox run -e build-dev" instead of calling "charmcraft pack" directly' >&2
exit 1
fi
override-build: |
rustup default stable
craftctl default
files:
plugin: dump
source: .
prime:
- charm_internal_version
bases:
- build-on:
- name: "ubuntu"
channel: "22.04"
run-on:
- name: "ubuntu"
channel: "22.04"
- charm_version
- workload_version
override-build: |
rustup default stable
craftctl default
3 changes: 3 additions & 0 deletions metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ website:
peers:
database-peers:
interface: mongodb-peers
upgrade-version-a:
interface: upgrade

provides:
database:
interface: mongodb_client
Expand Down
334 changes: 180 additions & 154 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pyyaml = "^6.0.1"
jinja2 = "^3.1.3"
poetry-core = "^1.9.0"
data-platform-helpers = "^0.1.3"
overrides = "^7.7.0"
lightkube = "^0.15.3"
pyOpenSSL = "^24.2.1"
setuptools = "^72.0.0"

Expand Down
Loading

0 comments on commit f9224f3

Please sign in to comment.