-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci/cli: add full backup/restore test
This test simulates migration of a Rancher Manager server. Signed-off-by: Loic Devulder <[email protected]>
- Loading branch information
Showing
10 changed files
with
638 additions
and
369 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,53 @@ | ||
# This workflow calls the master E2E workflow with custom variables | ||
name: CLI-K3s-Full-Backup | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
destroy_runner: | ||
description: Destroy the auto-generated self-hosted runner | ||
default: true | ||
type: boolean | ||
k8s_downstream_version: | ||
description: Rancher cluster downstream version to use | ||
default: '"v1.27.13+k3s1"' | ||
type: string | ||
k8s_upstream_version: | ||
description: Rancher cluster upstream version to use | ||
default: '"v1.27.13+k3s1"' | ||
type: string | ||
qase_run_id: | ||
description: Qase run ID where the results will be reported | ||
type: string | ||
rancher_version: | ||
description: Rancher Manager channel/version/head_version to use | ||
default: '"stable/latest"' | ||
type: string | ||
# schedule: | ||
# # From Monday to Saturday at 3am UTC (10pm in us-central1) | ||
# - cron: '0 3 * * 1-6' | ||
|
||
jobs: | ||
cli: | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
k8s_downstream_version: ${{ fromJSON(format('[{0}]', inputs.k8s_downstream_version || '"v1.27.13+k3s1"')) }} | ||
k8s_upstream_version: ${{ fromJSON(format('[{0}]', inputs.k8s_upstream_version || '"v1.27.13+k3s1"')) }} | ||
rancher_version: ${{ fromJSON(format('[{0}]', inputs.rancher_version || '"stable/latest","latest/devel/2.8","latest/devel/2.9"')) }} | ||
uses: ./.github/workflows/master_e2e.yaml | ||
secrets: | ||
credentials: ${{ secrets.GCP_CREDENTIALS }} | ||
pat_token: ${{ secrets.SELF_HOSTED_RUNNER_PAT_TOKEN }} | ||
qase_api_token: ${{ secrets.QASE_API_TOKEN }} | ||
with: | ||
destroy_runner: ${{ github.event_name == 'schedule' && true || inputs.destroy_runner }} | ||
full_backup_restore: true | ||
k8s_downstream_version: ${{ matrix.k8s_downstream_version }} | ||
k8s_upstream_version: ${{ matrix.k8s_upstream_version }} | ||
node_number: 3 | ||
qase_run_id: ${{ github.event_name == 'schedule' && 'auto' || inputs.qase_run_id }} | ||
rancher_version: ${{ matrix.rancher_version }} | ||
test_type: cli | ||
zone: us-central1-c |
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
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ metadata: | |
spec: | ||
backupFilename: %BACKUP_FILE% | ||
deleteTimeoutSeconds: 10 | ||
prune: true | ||
prune: %PRUNE% |
Oops, something went wrong.