Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Move to us-east-2 #1175

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/build/multi-platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
IbmKey = "multi-platform-tests"
SshSecretName = "sshkeys"
Ec2User = "ec2-user"
AwsRegion = "us-east-1"
AwsRegion1 = "us-east-1"
AwsRegion2 = "us-east-2"
AwsPlatform = "linux/arm64"
DynamicMaxInstances = "1"
IbmZUrl = "https://us-east.iaas.cloud.ibm.com/v1"
Expand Down Expand Up @@ -834,7 +835,7 @@
func getHostPoolAwsInstances() ([]string, error) {
cfg, err := config.LoadDefaultConfig(context.TODO(),
config.WithCredentialsProvider(EnvCredentialsProvider{}),
config.WithRegion(AwsRegion))
config.WithRegion(AwsRegion1))
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -894,7 +895,7 @@
hostConfig.Data["dynamic-platforms"] = AwsPlatform
hostConfig.Data["instance-tag"] = instanceTag
hostConfig.Data["dynamic.linux-arm64.type"] = "aws"
hostConfig.Data["dynamic.linux-arm64.region"] = AwsRegion
hostConfig.Data["dynamic.linux-arm64.region"] = AwsRegion2
hostConfig.Data["dynamic.linux-arm64.ami"] = "ami-09d5d0912f52f9514"
hostConfig.Data["dynamic.linux-arm64.instance-type"] = "t4g.micro"
hostConfig.Data["dynamic.linux-arm64.key-name"] = "multi-platform-e2e"
Expand Down Expand Up @@ -979,7 +980,7 @@
func terminateAwsInstance(instanceId string) error {
cfg, err := config.LoadDefaultConfig(context.TODO(),
config.WithCredentialsProvider(EnvCredentialsProvider{}),
config.WithRegion(AwsRegion))
config.WithRegion(AwsRegion2))
if err != nil {
return err
}
Expand All @@ -993,7 +994,7 @@
func getDynamicAwsInstance(tagName string) ([]string, error) {
cfg, err := config.LoadDefaultConfig(context.TODO(),
config.WithCredentialsProvider(EnvCredentialsProvider{}),
config.WithRegion(AwsRegion))

Check failure on line 997 in tests/build/multi-platform.go

View workflow job for this annotation

GitHub Actions / lint

undefined: AwsRegion

Check failure on line 997 in tests/build/multi-platform.go

View workflow job for this annotation

GitHub Actions / lint

undefined: AwsRegion

Check failure on line 997 in tests/build/multi-platform.go

View check run for this annotation

Red Hat Konflux / Red Hat Konflux / e2e-on-pull-request

tests/build/multi-platform.go#L997

undefined: AwsRegion
if err != nil {
return nil, err
}
Expand Down
Loading