-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (67 loc) · 3.05 KB
/
eks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This workflow calls the main workflow with custom variables
name: EKS-E2E
run-name: EKS ${{ inputs.downstream_k8s_minor_version }} on Rancher v${{ inputs.rancher_version || '2.9-head' }} deployed on ${{ inputs.k3s_version || 'v1.30.5+k3s1' }}
on:
schedule:
- cron: "0 4 * * 1-6" # From Monday to Saturday
- cron: "0 4 * * 0" # On Sunday
workflow_dispatch: # Allow running manually on demand
inputs:
rancher_version:
description: Rancher version to deploy
required: true
type: string
default: 2.9-head
k3s_version:
description: k3s version of local cluster
required: true
type: string
default: v1.30.5+k3s1
runner_template:
description: Runner template to use
default: hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3
type: string
operator_nightly_chart:
description: Install hosted-provider nightly chart
default: true
required: true
type: boolean
destroy_runner:
description: Destroy the auto-generated self-hosted runner
default: true
type: boolean
downstream_cluster_cleanup:
description: Cleanup downstream clusters after test
default: true
type: boolean
downstream_k8s_minor_version:
description: Downstream cluster minor K8s version to test (e.g. 1.30)
rancher_installed:
description: Rancher details if already installed
default: 'hostname/password'
type: string
tests_to_run:
description: Tests to run (p0_provisioning/p0_import/support_matrix_provisioning/support_matrix_import/k8s_chart_support_provisioning/k8s_chart_support_import/p1_provisioning/p1_import/sync_provisioning/sync_import)
type: string
required: true
default: p0_provisioning/p0_import
proxy:
description: Install Rancher behind proxy
type: boolean
default: false
jobs:
eks-e2e:
uses: ./.github/workflows/main.yaml
secrets: inherit
with:
hosted_provider: eks
rancher_version: ${{ inputs.rancher_version || '2.9-head' }}
k3s_version: ${{ inputs.k3s_version || 'v1.30.5+k3s1' }}
operator_nightly_chart: ${{ inputs.operator_nightly_chart == true || (github.event_name == 'schedule' && true) }}
tests_to_run: ${{ inputs.tests_to_run || (github.event.schedule == '0 4 * * 1-6' && 'p0_provisioning/p0_import') || (github.event.schedule == '0 4 * * 0' && 'p1_provisioning/p1_import/sync_provisioning/sync_import') }}
destroy_runner: ${{ inputs.destroy_runner ==true || (github.event_name == 'schedule' && true) }}
runner_template: ${{ inputs.runner_template || 'hosted-prov-e2e-ci-runner-spot-n2-highmem-16-gl-template-v3' }}
downstream_k8s_minor_version: ${{ inputs.downstream_k8s_minor_version }}
rancher_installed: ${{ inputs.rancher_installed || 'hostname/password' }}
downstream_cluster_cleanup: ${{ inputs.downstream_cluster_cleanup == true || (github.event_name == 'schedule' && true) }}
proxy: ${{ inputs.proxy == true }}