Skip to content

Commit

Permalink
feat: Implements the requirer side of the ingress integration (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan authored Oct 14, 2024
1 parent 2bf7bda commit e6f8b51
Show file tree
Hide file tree
Showing 7 changed files with 1,468 additions and 13 deletions.
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: [self-hosted, linux, X64, jammy, xlarge]

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
7 changes: 7 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ provides:
interface: prometheus_scrape
grafana-dashboard:
interface: grafana_dashboard
send-ca-cert:
interface: certificate_transfer
description: |
Send our CA certificate so clients can trust the CA by means of forming a relation.
requires:
access-certificates:
limit: 1
interface: tls-certificates
logging:
interface: loki_push_api
ingress:
interface: ingress
limit: 1

containers:
notary:
Expand Down
Loading

0 comments on commit e6f8b51

Please sign in to comment.