-
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 GCP #1060
base: devel
Are you sure you want to change the base?
Conversation
🤖 Created branch: z_pr1060/aswinsuryan/gcp-custom-vpc |
130eca6
to
46070f3
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further |
pkg/gcp/gcp.go
Outdated
} | ||
|
||
// NewCloud creates a new api.Cloud instance which can prepare GCP for Submariner to be deployed on it. | ||
func NewCloud(info CloudInfo) api.Cloud { | ||
return &gcpCloud{CloudInfo: info} | ||
func NewCloud(info *CloudInfo) api.Cloud { |
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 changed this to a pointer to avoid a linter error re: the struct size but it's preferable to pass by value here since info
is mutated. Ignore the linter error with //nolint
...
c954a10
to
49dccb3
Compare
pkg/gcp/ocpgwdeployer.go
Outdated
@@ -36,19 +36,29 @@ import ( | |||
) | |||
|
|||
type ocpGatewayDeployer struct { | |||
CloudInfo | |||
*CloudInfo |
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.
*CloudInfo | |
CloudInfo |
pkg/gcp/ocpgwdeployer.go
Outdated
msDeployer ocp.MachineSetDeployer | ||
instanceType string | ||
image string | ||
k8sClient k8s.Interface | ||
} | ||
|
||
// NewOcpGatewayDeployer returns a GatewayDeployer capable of deploying gateways using OCP. | ||
func NewOcpGatewayDeployer(info CloudInfo, msDeployer ocp.MachineSetDeployer, instanceType, image string, | ||
func NewOcpGatewayDeployer(info *CloudInfo, msDeployer ocp.MachineSetDeployer, instanceType, image string, |
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.
func NewOcpGatewayDeployer(info *CloudInfo, msDeployer ocp.MachineSetDeployer, instanceType, image string, | |
//nolint: gocritic // Ignore 'hugeParam' - pass by value for CloudInfo is intentional | |
func NewOcpGatewayDeployer(info CloudInfo, msDeployer ocp.MachineSetDeployer, instanceType, image string, |
47d06fe
to
971a03f
Compare
Signed-off-by: Aswin Suryanarayanan <[email protected]>
971a03f
to
949190b
Compare
Add custom VPC support in GCP