Skip to content

Commit

Permalink
[DPE-5502] Mongos k8s Upgrades (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness authored Oct 17, 2024
1 parent 436ac08 commit e84ffa9
Show file tree
Hide file tree
Showing 18 changed files with 1,486 additions and 308 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ jobs:
- release-charm
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
# Workaround for https://github.com/canonical/charmcraft/issues/1389#issuecomment-1880921728
touch requirements.txt
- name: Release any bumped charm libs
uses: canonical/charming-actions/[email protected]
with:
Expand Down
8 changes: 8 additions & 0 deletions actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ 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.

force-refresh-start:
description: |
Force upgrade of this unit.
Potential of data loss and downtime.
1 change: 1 addition & 0 deletions charm_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
23 changes: 16 additions & 7 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,29 @@ bases:
architectures: [amd64]
parts:
charm:
charm-strict-dependencies: true
override-build: |
rustup default stable
craftctl default
build-snaps:
- rustup
build-packages:
- libffi-dev
- libssl-dev
- pkg-config
override-pull: |
craftctl default
if [[ ! -f requirements.txt ]]
then
echo 'ERROR: Use "tox run -e build-dev" instead of calling "charmcraft pack" directly' >&2
exit 1
fi
files:
plugin: dump
source: .
prime:
- charm_version
- workload_version
override-build: |
rustup default stable
craftctl default
charm-strict-dependencies: true
build-snaps:
- rustup
build-packages:
- libffi-dev
- libssl-dev
- pkg-config
Loading

0 comments on commit e84ffa9

Please sign in to comment.