From 1db795e95fa3c6d25554c811bf881f5ee6fce45d Mon Sep 17 00:00:00 2001 From: Nikhil Malik Date: Wed, 3 Jan 2024 16:22:10 +0900 Subject: [PATCH 1/2] Enabling K8s CICD test cases --- .github/workflows/k8s-calico-ipvs.yml | 6 ++-- .github/workflows/k8s-calico-ipvs2.yml | 36 +++++++++++++++++++++++ .github/workflows/k8s-calico-ipvs3-ha.yml | 36 +++++++++++++++++++++++ .github/workflows/k8s-calico-ipvs3.yml | 6 ++-- 4 files changed, 78 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/k8s-calico-ipvs2.yml create mode 100644 .github/workflows/k8s-calico-ipvs3-ha.yml diff --git a/.github/workflows/k8s-calico-ipvs.yml b/.github/workflows/k8s-calico-ipvs.yml index 85abd82db..231bba018 100644 --- a/.github/workflows/k8s-calico-ipvs.yml +++ b/.github/workflows/k8s-calico-ipvs.yml @@ -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: diff --git a/.github/workflows/k8s-calico-ipvs2.yml b/.github/workflows/k8s-calico-ipvs2.yml new file mode 100644 index 000000000..121c2ba50 --- /dev/null +++ b/.github/workflows/k8s-calico-ipvs2.yml @@ -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 - diff --git a/.github/workflows/k8s-calico-ipvs3-ha.yml b/.github/workflows/k8s-calico-ipvs3-ha.yml new file mode 100644 index 000000000..09d88e298 --- /dev/null +++ b/.github/workflows/k8s-calico-ipvs3-ha.yml @@ -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 - diff --git a/.github/workflows/k8s-calico-ipvs3.yml b/.github/workflows/k8s-calico-ipvs3.yml index 5fb8d7d7a..f332366dc 100644 --- a/.github/workflows/k8s-calico-ipvs3.yml +++ b/.github/workflows/k8s-calico-ipvs3.yml @@ -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: From ae38e674a9d569a4e9ac8b854e1ad6de7994d299 Mon Sep 17 00:00:00 2001 From: Nikhil Malik Date: Wed, 3 Jan 2024 16:24:43 +0900 Subject: [PATCH 2/2] Error removed from yaml file --- .github/workflows/k8s-calico-ipvs2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/k8s-calico-ipvs2.yml b/.github/workflows/k8s-calico-ipvs2.yml index 121c2ba50..0afc7a0aa 100644 --- a/.github/workflows/k8s-calico-ipvs2.yml +++ b/.github/workflows/k8s-calico-ipvs2.yml @@ -1,6 +1,6 @@ name: K8s-Calico-Cluster-IPVS2-Sanity-CI on: - #schedule: + schedule: # Runs "At 15:00 UTC every day-of-week" - cron: '0 15 * * *' workflow_dispatch: