-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add custom vpc support in AWS cloud prepare #1007
Conversation
🤖 Created branch: z_pr1007/aswinsuryan/aws-custom-vpc |
4fd622e
to
00c4f51
Compare
Signed-off-by: Aswin Suryanarayanan <[email protected]> Signed-off-by: Tom Pantelis <[email protected]>
00c4f51
to
cbebff8
Compare
out.txt
Outdated
@@ -0,0 +1,443 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you didn't mean to submit this file.
pkg/aws/aws.go
Outdated
type awsCloud struct { | ||
client awsClient.Interface | ||
infraID string | ||
region string | ||
nodeSGSuffix string | ||
controlPlaneSGSuffix string | ||
CloudConfig map[string]interface{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need to be public for consistency.
CloudConfig map[string]interface{} | |
cloudConfig map[string]interface{} |
publicSubnets, err = d.aws.findPublicSubnets(vpcID, d.aws.filterByName("{infraID}*-public-{region}*")) | ||
if err != nil { | ||
return status.Error(err, "unable to find public subnets") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code block looks the same as the block starting on L152 above except the latter checks for len(publicSubnets)
. I think we can refactor to a function and let the caller check len(publicSubnets)
.
pkg/aws/ocpgwdeployer.go
Outdated
err = d.processSubnets(vpcID, gatewaySG, publicSubnets, input, status) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err = d.processSubnets(vpcID, gatewaySG, publicSubnets, input, status) | |
if err != nil { | |
return err | |
} | |
return nil | |
return d.processSubnets(vpcID, gatewaySG, publicSubnets, input, status) |
🤖 Closed branches: [z_pr1007/aswinsuryan/aws-custom-vpc] |
Signed-off-by: Aswin Suryanarayanan <[email protected]>
Add custom vpc support in AWS cloud prepare