-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (49 loc) · 1.63 KB
/
on-demand_multus.yml
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
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2021
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
name: Check Multus CNI
# yamllint disable-line rule:truthy
on:
push:
paths:
- "**.sh"
- "!ci/update_*.sh"
- "*.yml"
- "!playbooks/**/*.yml"
- "*.tpl"
- "*.env"
- "resources/*"
- "!**.md"
pull_request_review:
types:
- submitted
jobs:
check-multus:
name: Check Multus CNI in an Ubuntu Focal All-in-One setup
if: >-
( github.event_name == 'pull_request_review' && github.event.review.state == 'approved' ) || github.event_name != 'pull_request_review'
runs-on: ubuntu-22.04
env:
KRD_DEBUG: true
KRD_ANSIBLE_DEBUG: true
KRD_MULTUS_ENABLED: true
PKG_KREW_PLUGINS_LIST: "cert-manager"
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # 4.2.0
- name: Deploy services
run: KRD_FOLDER=$(git rev-parse --show-toplevel) ./aio.sh
- name: Run Sonobuoy tool
run: ./krd_command.sh -a run_sonobuoy
- name: Run Kubent tool
run: ./krd_command.sh -a run_kubent
- name: Run Multus tests
working-directory: ./tests
run: ./multus.sh
- name: Undeploy services
run: ./krd_command.sh -a uninstall_k8s