From e214a2dcc6f4e0348756b77782d9dd7b39d5091c Mon Sep 17 00:00:00 2001 From: Loic Devulder Date: Fri, 3 Nov 2023 10:24:41 +0100 Subject: [PATCH] ci/cli: add basic reset tests Signed-off-by: Loic Devulder --- .../workflows/cli-k3s-reset-rm_head_2.7.yaml | 27 +++++++++++++++++ .../workflows/cli-k3s-reset-rm_head_2.8.yaml | 27 +++++++++++++++++ .../workflows/cli-k3s-reset-rm_stable.yaml | 26 +++++++++++++++++ .../workflows/cli-rke2-reset-rm_head_2.7.yaml | 29 +++++++++++++++++++ .../workflows/cli-rke2-reset-rm_head_2.8.yaml | 29 +++++++++++++++++++ .../workflows/cli-rke2-reset-rm_stable.yaml | 28 ++++++++++++++++++ README.md | 2 ++ 7 files changed, 168 insertions(+) create mode 100644 .github/workflows/cli-k3s-reset-rm_head_2.7.yaml create mode 100644 .github/workflows/cli-k3s-reset-rm_head_2.8.yaml create mode 100644 .github/workflows/cli-k3s-reset-rm_stable.yaml create mode 100644 .github/workflows/cli-rke2-reset-rm_head_2.7.yaml create mode 100644 .github/workflows/cli-rke2-reset-rm_head_2.8.yaml create mode 100644 .github/workflows/cli-rke2-reset-rm_stable.yaml diff --git a/.github/workflows/cli-k3s-reset-rm_head_2.7.yaml b/.github/workflows/cli-k3s-reset-rm_head_2.7.yaml new file mode 100644 index 000000000..be56fa453 --- /dev/null +++ b/.github/workflows/cli-k3s-reset-rm_head_2.7.yaml @@ -0,0 +1,27 @@ +# This workflow calls the master E2E workflow with custom variables +name: CLI-K3s-Reset-RM_head_2.7 + +on: + workflow_dispatch: + inputs: + destroy_runner: + description: Destroy the auto-generated self-hosted runner + default: true + type: boolean + schedule: + - cron: '0 1 * * *' + +jobs: + cli: + uses: ./.github/workflows/master-e2e.yaml + secrets: + credentials: ${{ secrets.GCP_CREDENTIALS }} + pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + with: + test_description: "CI - CLI - Parallel - Deployment test + reset with Standard K3s" + cluster_name: cluster-k3s + destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} + k8s_version_to_provision: v1.26.8+k3s1 + rancher_version: latest/devel/2.7 + reset: true diff --git a/.github/workflows/cli-k3s-reset-rm_head_2.8.yaml b/.github/workflows/cli-k3s-reset-rm_head_2.8.yaml new file mode 100644 index 000000000..bb1e8c1b6 --- /dev/null +++ b/.github/workflows/cli-k3s-reset-rm_head_2.8.yaml @@ -0,0 +1,27 @@ +# This workflow calls the master E2E workflow with custom variables +name: CLI-K3s-Reset-RM_head_2.8 + +on: + workflow_dispatch: + inputs: + destroy_runner: + description: Destroy the auto-generated self-hosted runner + default: true + type: boolean + schedule: + - cron: '0 1 * * *' + +jobs: + cli: + uses: ./.github/workflows/master-e2e.yaml + secrets: + credentials: ${{ secrets.GCP_CREDENTIALS }} + pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + with: + test_description: "CI - CLI - Parallel - Deployment test + reset with Standard K3s" + cluster_name: cluster-k3s + destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} + k8s_version_to_provision: v1.26.8+k3s1 + rancher_version: latest/devel/2.8 + reset: true diff --git a/.github/workflows/cli-k3s-reset-rm_stable.yaml b/.github/workflows/cli-k3s-reset-rm_stable.yaml new file mode 100644 index 000000000..83a523c3c --- /dev/null +++ b/.github/workflows/cli-k3s-reset-rm_stable.yaml @@ -0,0 +1,26 @@ +# This workflow calls the master E2E workflow with custom variables +name: CLI-K3s-Reset-RM_Stable + +on: + workflow_dispatch: + inputs: + destroy_runner: + description: Destroy the auto-generated self-hosted runner + default: true + type: boolean + schedule: + - cron: '0 1 * * *' + +jobs: + cli: + uses: ./.github/workflows/master-e2e.yaml + secrets: + credentials: ${{ secrets.GCP_CREDENTIALS }} + pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + with: + test_description: "CI - CLI - Parallel - Deployment test + reset with Standard K3s" + cluster_name: cluster-k3s + destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} + k8s_version_to_provision: v1.26.8+k3s1 + reset: true diff --git a/.github/workflows/cli-rke2-reset-rm_head_2.7.yaml b/.github/workflows/cli-rke2-reset-rm_head_2.7.yaml new file mode 100644 index 000000000..0e5fdbf96 --- /dev/null +++ b/.github/workflows/cli-rke2-reset-rm_head_2.7.yaml @@ -0,0 +1,29 @@ +# This workflow calls the master E2E workflow with custom variables +name: CLI-RKE2-Reset-RM_head_2.7 + +on: + workflow_dispatch: + inputs: + destroy_runner: + description: Destroy the auto-generated self-hosted runner + default: true + type: boolean + schedule: + - cron: '0 1 * * *' + +jobs: + cli: + uses: ./.github/workflows/master-e2e.yaml + secrets: + credentials: ${{ secrets.GCP_CREDENTIALS }} + pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + with: + test_description: "CI - CLI - Parallel - Deployment test + reset with Standard RKE2" + ca_type: private + cluster_name: cluster-rke2 + destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} + k8s_version_to_provision: v1.26.8+rke2r1 + rancher_version: latest/devel/2.7 + upstream_cluster_version: v1.26.8+rke2r1 + reset: true diff --git a/.github/workflows/cli-rke2-reset-rm_head_2.8.yaml b/.github/workflows/cli-rke2-reset-rm_head_2.8.yaml new file mode 100644 index 000000000..8f37813da --- /dev/null +++ b/.github/workflows/cli-rke2-reset-rm_head_2.8.yaml @@ -0,0 +1,29 @@ +# This workflow calls the master E2E workflow with custom variables +name: CLI-RKE2-Reset-RM_head_2.8 + +on: + workflow_dispatch: + inputs: + destroy_runner: + description: Destroy the auto-generated self-hosted runner + default: true + type: boolean + schedule: + - cron: '0 1 * * *' + +jobs: + cli: + uses: ./.github/workflows/master-e2e.yaml + secrets: + credentials: ${{ secrets.GCP_CREDENTIALS }} + pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + with: + test_description: "CI - CLI - Parallel - Deployment test + reset with Standard RKE2" + ca_type: private + cluster_name: cluster-rke2 + destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} + k8s_version_to_provision: v1.26.8+rke2r1 + rancher_version: latest/devel/2.8 + upstream_cluster_version: v1.26.8+rke2r1 + reset: true diff --git a/.github/workflows/cli-rke2-reset-rm_stable.yaml b/.github/workflows/cli-rke2-reset-rm_stable.yaml new file mode 100644 index 000000000..71faf59cd --- /dev/null +++ b/.github/workflows/cli-rke2-reset-rm_stable.yaml @@ -0,0 +1,28 @@ +# This workflow calls the master E2E workflow with custom variables +name: CLI-RKE2-Reset-RM_Stable + +on: + workflow_dispatch: + inputs: + destroy_runner: + description: Destroy the auto-generated self-hosted runner + default: true + type: boolean + schedule: + - cron: '0 1 * * *' + +jobs: + cli: + uses: ./.github/workflows/master-e2e.yaml + secrets: + credentials: ${{ secrets.GCP_CREDENTIALS }} + pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + with: + test_description: "CI - CLI - Parallel - Deployment test + reset with Standard RKE2" + ca_type: private + cluster_name: cluster-rke2 + destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} + k8s_version_to_provision: v1.26.8+rke2r1 + upstream_cluster_version: v1.26.8+rke2r1 + reset: true diff --git a/README.md b/README.md index 57cde948b..0d94729f7 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [![CLI-K3s](https://github.com/rancher/elemental/actions/workflows/cli-k3s-rm_stable.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-rm_stable.yaml) | [![CLI-K3s](https://github.com/rancher/elemental/actions/workflows/cli-k3s-rm_head_2.7.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-rm_head_2.7.yaml) | [![CLI-K3s](https://github.com/rancher/elemental/actions/workflows/cli-k3s-rm_head_2.8.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-rm_head_2.8.yaml) | | [![CLI-RKE2](https://github.com/rancher/elemental/actions/workflows/cli-rke2-rm_stable.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-rm_stable.yaml) | [![CLI-RKE2](https://github.com/rancher/elemental/actions/workflows/cli-rke2-rm_head_2.7.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-rm_head_2.7.yaml) | [![CLI-RKE2](https://github.com/rancher/elemental/actions/workflows/cli-rke2-rm_head_2.8.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-rm_head_2.8.yaml) | +| [![CLI-K3s-Reset](https://github.com/rancher/elemental/actions/workflows/cli-k3s-reset-rm_stable.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-reset-rm_stable.yaml) | [![CLI-K3s-Reset](https://github.com/rancher/elemental/actions/workflows/cli-k3s-reset-rm_head_2.7.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-reset-rm_head_2.7.yaml) | [![CLI-K3s-Reset](https://github.com/rancher/elemental/actions/workflows/cli-k3s-reset-rm_head_2.8.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-reset-rm_head_2.8.yaml) | +| [![CLI-RKE2-Reset](https://github.com/rancher/elemental/actions/workflows/cli-rke2-reset-rm_stable.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-reset-rm_stable.yaml) | [![CLI-RKE2-Reset](https://github.com/rancher/elemental/actions/workflows/cli-rke2-reset-rm_head_2.7.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-reset-rm_head_2.7.yaml) | [![CLI-RKE2-Reset](https://github.com/rancher/elemental/actions/workflows/cli-rke2-reset-rm_head_2.8.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-reset-rm_head_2.8.yaml) | | [![CLI-K3s-Sequential](https://github.com/rancher/elemental/actions/workflows/cli-k3s-sequential-rm_stable.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-sequential-rm_stable.yaml) | [![CLI-K3s-Sequential](https://github.com/rancher/elemental/actions/workflows/cli-k3s-sequential-rm_head_2.7.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-sequential-rm_head_2.7.yaml) | [![CLI-K3s-Sequential](https://github.com/rancher/elemental/actions/workflows/cli-k3s-sequential-rm_head_2.8.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-sequential-rm_head_2.8.yaml) | | [![CLI-RKE2-Sequential](https://github.com/rancher/elemental/actions/workflows/cli-rke2-sequential-rm_stable.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-sequential-rm_stable.yaml) | [![CLI-RKE2-Sequential](https://github.com/rancher/elemental/actions/workflows/cli-rke2-sequential-rm_head_2.7.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-sequential-rm_head_2.7.yaml) | [![CLI-RKE2-Sequential](https://github.com/rancher/elemental/actions/workflows/cli-rke2-sequential-rm_head_2.8.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-rke2-sequential-rm_head_2.8.yaml) | | [![CLI-K3s-OS-Upgrade](https://github.com/rancher/elemental/actions/workflows/cli-k3s-os-upgrade-rm_stable.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-os-upgrade-rm_stable.yaml) | [![CLI-K3s-OS-Upgrade](https://github.com/rancher/elemental/actions/workflows/cli-k3s-os-upgrade-rm_head_2.7.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-os-upgrade-rm_head_2.7.yaml) | [![CLI-K3s-OS-Upgrade](https://github.com/rancher/elemental/actions/workflows/cli-k3s-os-upgrade-rm_head_2.8.yaml/badge.svg?branch=main)](https://github.com/rancher/elemental/actions/workflows/cli-k3s-os-upgrade-rm_head_2.8.yaml) |