-
Notifications
You must be signed in to change notification settings - Fork 4
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
[GCP] Fix for private service connect bug #500
base: main
Are you sure you want to change the base?
Conversation
97b6027
to
c262a03
Compare
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.
Looks good!
3c8c031
to
53099ee
Compare
…etwork info to use global clients and test non-google services Signed-off-by: Sarah McClure <[email protected]>
Signed-off-by: Sarah McClure <[email protected]>
Signed-off-by: Sarah McClure <[email protected]>
Signed-off-by: Sarah McClure <[email protected]>
53099ee
to
96107cf
Compare
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.
Just a couple of newbie questions.
@@ -202,9 +226,15 @@ func (c *GCPClients) Close() { | |||
if c.addressesClient != nil { | |||
c.addressesClient.Close() | |||
} | |||
if c.globalAddressesClient != nil { | |||
c.globalAddressesClient.Close() |
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.
For my education, are these clients functional after calling Close? E.g., do they provide methods to re-open or do they automatically re-establish anything needed for operation if you make any subsequent call?
Otherwise, should we be setting fields to nil explicitly, to allow for a functional client to be populated again via GetOrCreate methods?
Perhaps it's ok if we only use Close when we are shutting down the serice or going to recycle the entire struct?
} | ||
|
||
return &resourceInfo{Region: region, NumAdditionalAddressSpaces: r.getNumberAddressSpacesRequired(), ResourceType: privateServiceConnectTypeName, Name: resource.Name}, nil | ||
} | ||
|
||
// Get the subnet requirements for a private service connect attachment | ||
func (r *privateServiceHandler) getNumberAddressSpacesRequired() int { | ||
return 0 | ||
return 1 // Only used for GCP services (TODO: Change this to depend on that) |
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.
Should we create an issue to track this in more detail, or are we ok with tracking with TODOs?
Resolves #495
Root issues:
Future issues: