generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (53 loc) · 1.76 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Tests
on:
workflow_dispatch:
workflow_call:
jobs:
integration-test-microk8s:
name: Integration tests (microk8s)
runs-on: ubuntu-24.04
strategy:
matrix:
version: [30,31]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: 1.${{ matrix.version }}-strict/stable
juju-channel: 3.6/stable
# provide a pool of at least 3 IP addresses to the metallb addon
microk8s-addons: "dns hostpath-storage metallb:10.64.140.43-10.64.140.49"
- name: Run integration tests
run: tox -e integration -- --model testing
- name: Print hydra logs for debugging
run: kubectl logs -n testing -c hydra hydra-0
- name: Get contexts
run: kubectl config view
if: failure()
- name: Get all
run: kubectl get all -A
if: failure()
- name: Get endpoints
run: kubectl get ep -A
if: failure()
- name: Describe deployments
run: kubectl describe deployments -n testing
if: failure()
- name: Describe replicasets
run: kubectl describe replicasets -n testing
if: failure()
- name: Describe pods
run: kubectl describe pods -n testing
if: failure()
- name: Get operator controller logs
run: kubectl logs -n testing --tail 1000 --selector operator.juju.is/name=modeloperator
if: failure()
- name: Get juju status
run: juju status --relations
if: failure()
- name: Get juju logs
run: juju debug-log --replay
if: failure()