Skip to content

Commit

Permalink
Enabling K8s CICD test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-netlox committed Jan 3, 2024
1 parent 2815358 commit 1db795e
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/k8s-calico-ipvs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: K8s-Calico-Cluster-IPVS-Sanity-CI
on:
#schedule:
# Runs "At 13:00 UTC every day-of-week"
#- cron: '0 13 * * *'
schedule:
# Runs "At 14:00 UTC every day-of-week"
- cron: '0 14 * * *'
workflow_dispatch:
inputs:
testName:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/k8s-calico-ipvs2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: K8s-Calico-Cluster-IPVS2-Sanity-CI
on:
#schedule:
# Runs "At 15:00 UTC every day-of-week"
- cron: '0 15 * * *'
workflow_dispatch:
inputs:
testName:
description: 'Test Run-Name'
required: true
default: 'k8s-calico-cluster-ipvs2'
jobs:
test-runner:
name: k8s-calico-cluster-ipvs2-sanity
runs-on: self-hosted
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-ipvs2
./config.sh
./validation.sh
cd -
- name: Clean test-bed
if: success() || failure()
run: |
cd cicd/k8s-calico-ipvs2 || true
./rmconfig.sh
cd -
36 changes: 36 additions & 0 deletions .github/workflows/k8s-calico-ipvs3-ha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: K8s-Calico-Cluster-IPVS3-HA-Sanity-CI
on:
schedule:
# Runs "At 17:00 UTC every day-of-week"
- cron: '0 17 * * *'
workflow_dispatch:
inputs:
testName:
description: 'Test Run-Name'
required: true
default: 'k8s-calico-cluster-ipvs3-ha'
jobs:
test-runner:
name: k8s-calico-cluster-ipvs3-ha-sanity
runs-on: self-hosted
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-ipvs3-ha
./config.sh
./validation.sh
cd -
- name: Clean test-bed
if: success() || failure()
run: |
cd cicd/k8s-calico-ipvs3-ha || true
./rmconfig.sh
cd -
6 changes: 3 additions & 3 deletions .github/workflows/k8s-calico-ipvs3.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: K8s-Calico-Cluster-IPVS3-Sanity-CI
on:
#schedule:
# Runs "At 13:00 UTC every day-of-week"
#- cron: '0 13 * * *'
schedule:
# Runs "At 16:00 UTC every day-of-week"
- cron: '0 16 * * *'
workflow_dispatch:
inputs:
testName:
Expand Down

0 comments on commit 1db795e

Please sign in to comment.