Skip to content

Commit

Permalink
ci/cli: add basic reset tests
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <ldevulder@suse.com>
  • Loading branch information
ldevulder committed Nov 3, 2023
1 parent fb7c916 commit e214a2d
Show file tree
Hide file tree
Showing 7 changed files with 168 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cli-k3s-reset-rm_head_2.7.yaml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions .github/workflows/cli-k3s-reset-rm_head_2.8.yaml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions .github/workflows/cli-k3s-reset-rm_stable.yaml
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions .github/workflows/cli-rke2-reset-rm_head_2.7.yaml
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions .github/workflows/cli-rke2-reset-rm_head_2.8.yaml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions .github/workflows/cli-rke2-reset-rm_stable.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down

0 comments on commit e214a2d

Please sign in to comment.