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

Configure envoy-operator for CKF 1.8 #56

Merged
merged 12 commits into from
Oct 19, 2023
45 changes: 13 additions & 32 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,46 +44,23 @@ jobs:
run: tox -e unit

deploy:
name: Test
name: Integration Tests
runs-on: ubuntu-20.04

steps:
- name: Check out repo
uses: actions/checkout@v2

- uses: balchua/microk8s-actions@v0.2.2
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
addons: '["dns", "storage", "rbac"]'
channel: 1.21/stable
provider: microk8s
channel: 1.25-strict/stable
juju-channel: 3.1/stable
microk8s-addons: "dns hostpath-storage rbac"

# Avoid race condition with storage taking a long time to initialize
- name: Wait for storage
run: |
sg microk8s -c 'microk8s kubectl rollout status deployment/hostpath-provisioner -n kube-system'

- name: Install dependencies
run: |
set -eux
sudo snap install charmcraft --classic --channel=latest/candidate
sudo snap install juju --classic
sudo snap install juju-wait --classic
sudo snap install yq

- name: Bootstrap Juju
run: |
set -eux
sg microk8s -c 'juju bootstrap microk8s uk8s'
juju add-model ci-test

- name: Deploy charm
run: |
set -eux
charmcraft pack --destructive-mode
juju deploy ./*.charm \
--resource oci-image=$(yq eval '.resources.oci-image.upstream-source' metadata.yaml)
juju deploy cs:mlmd
juju relate envoy mlmd
juju wait -wvt 300
- name: Test
run: sg snap_microk8s -c "tox -vve integration -- --model testing"

- name: Get all
run: kubectl get all -A
Expand All @@ -108,3 +85,7 @@ jobs:
- name: Get mlmd operator logs
run: kubectl logs --tail 100 -nci-test -ljuju-operator=mlmd
if: failure()

- name: Collect charm debug artifacts
uses: canonical/kubeflow-ci/actions/dump-charm-debug-artifacts@main
if: always()
22 changes: 12 additions & 10 deletions requirements-fmt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --resolver=backtracking ./requirements-fmt.in
# pip-compile requirements-fmt.in
#
black==22.10.0
# via -r ./requirements-fmt.in
click==8.1.3
black==23.9.1
# via -r requirements-fmt.in
click==8.1.7
# via black
isort==5.10.1
# via -r ./requirements-fmt.in
mypy-extensions==0.4.3
isort==5.12.0
# via -r requirements-fmt.in
mypy-extensions==1.0.0
# via black
pathspec==0.10.2
packaging==23.2
# via black
platformdirs==2.5.4
pathspec==0.11.2
# via black
platformdirs==3.11.0
# via black
tomli==2.0.1
# via black
typing-extensions==4.4.0
typing-extensions==4.8.0
# via black
Loading
Loading