-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #793 from nik-netlox/main
K8s-calico-incluster CICD test added
- Loading branch information
Showing
19 changed files
with
403 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: K8s-Calico-Incluster-Sanity-CI | ||
on: | ||
schedule: | ||
# Runs "At 11:00 UTC every day-of-week" | ||
- cron: '0 11 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
testName: | ||
description: 'Test Run-Name' | ||
required: true | ||
default: 'k8s-calico-incluster' | ||
jobs: | ||
test-runner: | ||
name: k8s-calico-incluster-sanity | ||
runs-on: [self-hosted, large] | ||
if: github.repository == 'loxilb-io/loxilb' | ||
&& github.event.inputs.tagName == '' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Run the test | ||
run: | | ||
cd cicd/k8s-calico-incluster | ||
./config.sh | ||
./validation.sh | ||
cd - | ||
- name: Clean test-bed | ||
if: success() || failure() | ||
run: | | ||
cd cicd/k8s-calico-incluster || true | ||
./rmconfig.sh | ||
cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
sudo su | ||
sudo apt-get install -y lksctp-tools socat | ||
wget https://github.com/loxilb-io/loxilb/raw/main/cicd/common/sctp_client | ||
wget https://github.com/loxilb-io/loxilb/raw/main/cicd/common/udp_client | ||
chmod 777 sctp_client | ||
chmod 777 udp_client | ||
echo "123.123.123.1 k8s-svc" >> /etc/hosts | ||
ifconfig eth2 mtu 1450 | ||
ip route add 123.123.123.0/24 via 192.168.90.10 | ||
# Install Bird to work with k3s | ||
sudo apt-get update | ||
sudo apt-get -y install socat lksctp-tools | ||
|
||
echo "Host is up" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.