Skip to content

Commit dfd74ea

Browse files
[release/v1.56] Fix E2E tests for AWS (#1604)
* Fix E2E tests for AWS Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com> * remove custom AMI from rhel os Signed-off-by: Moath Qasim <moad.qassem@gmail.com> --------- Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com> Signed-off-by: Moath Qasim <moad.qassem@gmail.com> Co-authored-by: Moath Qasim <moad.qassem@gmail.com>
1 parent c175998 commit dfd74ea

File tree

11 files changed

+14
-19
lines changed

11 files changed

+14
-19
lines changed

docs/cloud-provider.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ region: "eu-central-1"
5757
# avaiability zone for the instance
5858
availabilityZone: "eu-central-1a"
5959
# vpc id for the instance
60-
vpcId: "vpc-819f62e9"
60+
vpcId: "vpc-079f7648481a11e77"
6161
# subnet id for the instance
6262
subnetId: "subnet-2bff4f43"
6363
# enable public IP assignment, default is true

examples/aws-machinedeployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
key: secretAccessKey
5353
region: "eu-central-1"
5454
availabilityZone: "eu-central-1a"
55-
vpcId: "vpc-819f62e9"
55+
vpcId: "vpc-079f7648481a11e77"
5656
subnetId: "subnet-2bff4f43"
5757
instanceType: "t2.micro"
5858
instanceProfile: "kubernetes-v1"

pkg/apis/cluster/v1alpha1/conversions/testdata/clusterv1alpha1machineWithProviderConfig/aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
subnetId: subnet-2bff4f43
2828
tags:
2929
KubernetesCluster: 6qsm86c2d
30-
vpcId: vpc-819f62e9
30+
vpcId: vpc-079f7648481a11e77
3131
operatingSystem: flatcar
3232
operatingSystemSpec:
3333
disableAutoUpdate: true

pkg/apis/cluster/v1alpha1/conversions/testdata/machinesv1alpha1machine/aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
secretAccessKey: "val"
1717
region: "eu-central-1"
1818
availabilityZone: "eu-central-1a"
19-
vpcId: "vpc-819f62e9"
19+
vpcId: "vpc-079f7648481a11e77"
2020
subnetId: "subnet-2bff4f43"
2121
instanceType: "t2.micro"
2222
diskSize: 50

pkg/apis/cluster/v1alpha1/conversions/testdata/migrated_clusterv1alpha1machine/aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
subnetId: subnet-2bff4f43
2323
tags:
2424
KubernetesCluster: 6qsm86c2d
25-
vpcId: vpc-819f62e9
25+
vpcId: vpc-079f7648481a11e77
2626
operatingSystem: flatcar
2727
operatingSystemSpec:
2828
disableAutoUpdate: true

pkg/apis/cluster/v1alpha1/conversions/testdata/migrated_clusterv1alpha1machineWithProviderConfig/aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
subnetId: subnet-2bff4f43
3131
tags:
3232
KubernetesCluster: 6qsm86c2d
33-
vpcId: vpc-819f62e9
33+
vpcId: vpc-079f7648481a11e77
3434
operatingSystem: flatcar
3535
operatingSystemSpec:
3636
disableAutoUpdate: true

test/e2e/provisioning/helper.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,10 @@ func testScenario(t *testing.T, testCase scenario, cloudProvider string, testPar
206206
scenarioParams = append(scenarioParams, fmt.Sprintf("<< OS_DISK_SIZE >>=%v", 0))
207207
scenarioParams = append(scenarioParams, fmt.Sprintf("<< DATA_DISK_SIZE >>=%v", 0))
208208
scenarioParams = append(scenarioParams, fmt.Sprintf("<< CUSTOM-IMAGE >>=%v", "rhel-8-1-custom"))
209-
scenarioParams = append(scenarioParams, fmt.Sprintf("<< AMI >>=%s", "ami-08c04369895785ac4"))
210209
scenarioParams = append(scenarioParams, fmt.Sprintf("<< MAX_PRICE >>=%s", "0.08"))
211210
} else {
212211
scenarioParams = append(scenarioParams, fmt.Sprintf("<< OS_DISK_SIZE >>=%v", 30))
213212
scenarioParams = append(scenarioParams, fmt.Sprintf("<< DATA_DISK_SIZE >>=%v", 30))
214-
scenarioParams = append(scenarioParams, fmt.Sprintf("<< AMI >>=%s", ""))
215213
scenarioParams = append(scenarioParams, fmt.Sprintf("<< DISK_SIZE >>=%v", 25))
216214
scenarioParams = append(scenarioParams, fmt.Sprintf("<< CUSTOM-IMAGE >>=%v", ""))
217215
scenarioParams = append(scenarioParams, fmt.Sprintf("<< MAX_PRICE >>=%s", "0.03"))

test/e2e/provisioning/testdata/machinedeployment-aws-arm-machines.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ spec:
3030
secretAccessKey: << AWS_SECRET_ACCESS_KEY >>
3131
region: "eu-central-1"
3232
availabilityZone: "eu-central-1a"
33-
vpcId: "vpc-819f62e9"
33+
vpcId: "vpc-079f7648481a11e77"
3434
instanceType: "a1.medium"
3535
instanceProfile: "kubernetes-v1"
3636
diskSize: 50
3737
diskType: "gp2"
3838
ebsVolumeEncrypted: false
39-
ami: "<< AMI >>"
4039
securityGroupIDs:
41-
- "sg-a2c195ca"
40+
- "sg-0f1f62df28fb378b7"
4241
tags:
4342
# you have to set this flag to real clusterID when running against our dev or prod
4443
# otherwise you might have issues with your nodes not joining the cluster

test/e2e/provisioning/testdata/machinedeployment-aws-ebs-encryption-enabled.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ spec:
3030
secretAccessKey: << AWS_SECRET_ACCESS_KEY >>
3131
region: "eu-central-1"
3232
availabilityZone: "eu-central-1a"
33-
vpcId: "vpc-819f62e9"
33+
vpcId: "vpc-079f7648481a11e77"
3434
instanceType: "t2.medium"
3535
instanceProfile: "kubernetes-v1"
3636
diskSize: 50
3737
diskType: "gp2"
3838
ebsVolumeEncrypted: true
3939
securityGroupIDs:
40-
- "sg-a2c195ca"
40+
- "sg-0f1f62df28fb378b7"
4141
tags:
4242
# you have to set this flag to real clusterID when running against our dev or prod
4343
# otherwise you might have issues with your nodes not joining the cluster

test/e2e/provisioning/testdata/machinedeployment-aws-spot-instances.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,18 @@ spec:
3030
secretAccessKey: << AWS_SECRET_ACCESS_KEY >>
3131
region: "eu-central-1"
3232
availabilityZone: "eu-central-1a"
33-
vpcId: "vpc-819f62e9"
33+
vpcId: "vpc-079f7648481a11e77"
3434
instanceType: "t2.medium"
3535
instanceProfile: "kubernetes-v1"
3636
diskSize: 50
3737
diskType: "gp2"
3838
ebsVolumeEncrypted: false
39-
ami: "<< AMI >>"
4039
isSpotInstance: true
4140
spotInstanceConfig:
4241
maxPrice: "<< MAX_PRICE >>"
4342
persistentRequest: false
4443
securityGroupIDs:
45-
- "sg-a2c195ca"
44+
- "sg-0f1f62df28fb378b7"
4645
tags:
4746
# you have to set this flag to real clusterID when running against our dev or prod
4847
# otherwise you might have issues with your nodes not joining the cluster

test/e2e/provisioning/testdata/machinedeployment-aws.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ spec:
3232
assumeRoleExternalID: "<< AWS_ASSUME_ROLE_EXTERNAL_ID >>"
3333
region: "eu-central-1"
3434
availabilityZone: "eu-central-1a"
35-
vpcId: "vpc-819f62e9"
35+
vpcId: "vpc-079f7648481a11e77"
3636
instanceType: "t2.medium"
3737
instanceProfile: "kubernetes-v1"
3838
diskSize: 50
3939
diskType: "gp2"
4040
ebsVolumeEncrypted: false
41-
ami: "<< AMI >>"
4241
securityGroupIDs:
43-
- "sg-a2c195ca"
42+
- "sg-0f1f62df28fb378b7"
4443
tags:
4544
# you have to set this flag to real clusterID when running against our dev or prod
4645
# otherwise you might have issues with your nodes not joining the cluster

0 commit comments

Comments
 (0)