Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implements the requirer side of the ingress integration #31

Merged
merged 13 commits into from
Oct 14, 2024
15 changes: 9 additions & 6 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
arch:
- arch: amd64
runner: ubuntu-22.04

runs-on: ${{ matrix.arch.runner }}
steps:
- name: Checkout
Expand All @@ -21,31 +21,34 @@ jobs:
with:
name: built-charm-${{ matrix.arch.arch }}
path: built/

- name: Get Charm Under Test Path
id: charm-path
run: echo "charm_path=$(find built/ -name '*.charm' -type f -print)" >> $GITHUB_OUTPUT

- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: 1.29-strict/stable
juju-channel: 3.4/stable
lxd-channel: 5.20/stable


- name: Enable Metallb
run: /usr/bin/sg snap_microk8s -c "sudo microk8s enable metallb:10.0.0.2-10.0.0.10"

- name: Run integration tests
run: |
tox -e integration -- \
--charm_path=${{ steps.charm-path.outputs.charm_path }}

- name: Archive charmcraft logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: charmcraft-logs
path: /home/runner/.local/state/charmcraft/log/*.log

- name: Archive juju crashdump
if: failure()
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ provides:
requires:
logging:
interface: loki_push_api
ingress:
interface: ingress
limit: 1

bases:
- build-on:
Expand Down
Loading
Loading