File tree 15 files changed +633
-478
lines changed
15 files changed +633
-478
lines changed Original file line number Diff line number Diff line change 6
6
description : " The pytest filter to use"
7
7
required : false
8
8
default : " post and ci and not multinode and not slow and not registry_ha"
9
+ EXTRA_FILTER :
10
+ description : " Extra pytest filter to add at the end"
11
+ required : false
12
+ default : " "
9
13
CONTROL_PLANE_INGRESS_VIP :
10
14
description : " Virtual IP to use to test to reconfigure the Control Plane Ingress"
11
15
required : false
37
41
export BOOTSTRAP_BACKUP_ARCHIVE=\"${{ inputs.BOOTSTRAP_BACKUP_ARCHIVE }}\"
38
42
export CONTROL_PLANE_INGRESS_VIP=\"${{ inputs.CONTROL_PLANE_INGRESS_VIP }}\"
39
43
export WORKLOAD_PLANE_INGRESS_VIPS=\"${{ inputs.WORKLOAD_PLANE_INGRESS_VIPS }}\"
40
- tox -e tests -- -m \"${{ inputs.PYTEST_FILTERS }}\"
44
+ tox -e tests -- -m \"${{ inputs.PYTEST_FILTERS }} ${{ inputs.EXTRA_FILTER }} \"
Original file line number Diff line number Diff line change @@ -16,15 +16,18 @@ inputs:
16
16
# Tooling configuration
17
17
TERRAFORM_VERSION :
18
18
description : " Terraform version to use"
19
- required : true
19
+ required : false
20
+ default : " 1.3.6"
20
21
TERRAFORM_SNAPSHOT_TAG :
21
- description : " Terraform snapshot tag to checkout"
22
- required : true
22
+ description : " Tag to checkout for the scality/terraform-snapshot repository"
23
+ required : false
24
+ default : " 0.9.0"
23
25
24
26
# Cloud configuration
25
27
CLOUD :
26
28
description : " Name of the remote cloud to use (available: ovh)"
27
- required : true
29
+ required : false
30
+ default : " ovh"
28
31
29
32
# Spawn configuration
30
33
ARTIFACTS_URL :
Original file line number Diff line number Diff line change 5
5
# The only parameter to this action
6
6
CLOUD :
7
7
description : " Short name defining the chosen remote cloud (available: ovh)"
8
- required : true
8
+ required : false
9
+ default : " ovh"
9
10
10
11
# All following should map to repository secrets
11
12
OVH_AUTH_URL :
Original file line number Diff line number Diff line change 7
7
required : true
8
8
cloud :
9
9
description : " Name of the remote cloud to use (available: ovh)"
10
- required : true
10
+ required : false
11
+ default : " ovh"
11
12
12
13
nodes-count :
13
14
description : " The number of nodes (in addition to bootstrap) to snapshot"
Original file line number Diff line number Diff line change @@ -16,15 +16,18 @@ inputs:
16
16
# Tooling configuration
17
17
TERRAFORM_VERSION :
18
18
description : " Terraform version to use"
19
- required : true
19
+ required : false
20
+ default : " 1.3.6"
20
21
TERRAFORM_SNAPSHOT_TAG :
21
22
description : " Tag to checkout for the scality/terraform-snapshot repository"
22
- required : true
23
+ required : false
24
+ default : " 0.9.0"
23
25
24
26
# Cloud configuration
25
27
CLOUD :
26
28
description : " Name of the remote cloud to use (available: ovh)"
27
- required : true
29
+ required : false
30
+ default : " ovh"
28
31
29
32
# Spawn configuration
30
33
NAME :
@@ -44,6 +47,15 @@ inputs:
44
47
required : false
45
48
default : " "
46
49
50
+ rhsm-username :
51
+ description : " The RHSM username to use (only needed on RedHat)"
52
+ required : false
53
+ default : " "
54
+ rhsm-password :
55
+ description : " The RHSM password to use (only needed on RedHat)"
56
+ required : false
57
+ default : " "
58
+
47
59
runs :
48
60
using : " composite"
49
61
steps :
99
111
TF_VAR_os : " ${{ inputs.OS }}"
100
112
TF_VAR_nodes_count : " ${{ inputs.NODES_COUNT }}"
101
113
TF_VAR_restore_env : " ${{ inputs.RESTORE_ENV }}"
114
+ TF_VAR_rhsm_username : " ${{ inputs.rhsm-username }}"
115
+ TF_VAR_rhsm_password : " ${{ inputs.rhsm-password }}"
102
116
MAX_RETRIES : " 3"
103
117
TFVARS_DIR : " ${{ github.workspace }}/.github/spawn/tfvars"
104
118
run : |
Original file line number Diff line number Diff line change 18
18
default : " unknown"
19
19
20
20
env :
21
- CLOUD : " ovh"
22
21
OS : " rocky-8"
23
- TERRAFORM_VERSION : " 1.3.6"
24
- TERRAFORM_SNAPSHOT_TAG : " 0.9.0"
25
22
NODES_COUNT : " 0"
26
23
27
24
jobs :
36
33
run : sudo yum install -y isomd5sum
37
34
38
35
# # Spawn {{{
39
- - name : Export environment variables for accessing ${{ env.CLOUD }}
36
+ - name : Export environment variables for accessing the cloud
40
37
uses : ./.github/actions/export-cloud-env
41
38
with :
42
- CLOUD : ${{ env.CLOUD }}
43
39
# Pass all "cloud access" secrets, the action will know which ones to export
44
40
OVH_AUTH_URL : ${{ secrets.OVH_AUTH_URL }}
45
41
OVH_USERNAME : ${{ secrets.OVH_USERNAME }}
49
45
uses : ./.github/actions/spawn-cluster
50
46
with :
51
47
# Parameters
52
- CLOUD : ${{ env.CLOUD }}
53
48
OS : ${{ env.OS }}
54
49
NAME : ${{ env.NAME }}
55
50
NODES_COUNT : ${{ env.NODES_COUNT }}
56
- TERRAFORM_VERSION : ${{ env.TERRAFORM_VERSION }}
57
- TERRAFORM_SNAPSHOT_TAG : ${{ env.TERRAFORM_SNAPSHOT_TAG }}
58
51
# Secrets
59
52
GIT_ACCESS_TOKEN : ${{ secrets.GIT_ACCESS_TOKEN }}
60
53
ARTIFACTS_USER : ${{ secrets.ARTIFACTS_USER }}
@@ -181,9 +174,6 @@ jobs:
181
174
uses : ./.github/actions/destroy-cluster
182
175
with :
183
176
# Parameters
184
- CLOUD : ${{ env.CLOUD }}
185
- TERRAFORM_SNAPSHOT_TAG : ${{ env.TERRAFORM_SNAPSHOT_TAG }}
186
- TERRAFORM_VERSION : ${{ env.TERRAFORM_VERSION }}
187
177
NAME : ${{ env.NAME }}
188
178
# Secrets
189
179
GIT_ACCESS_TOKEN : ${{ secrets.GIT_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments