-
Notifications
You must be signed in to change notification settings - Fork 433
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 Support for API Gateways in GCP #715
Add Support for API Gateways in GCP #715
Conversation
providers/gcp/gateway/gateway.go
Outdated
return resources, err | ||
} | ||
|
||
RegionsLoop: |
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.
To keep the code consistent with the rest of the codebase, I'd like to ask you not to work with labels. In this case the continue
keyword would be enough.
providers/gcp/gateway/gateway.go
Outdated
fmt.Printf("%+v\n", apiGateway) | ||
|
||
layout := "2006-01-02T15:04:05.999999999Z" | ||
parsedCreatedTime, err := time.Parse(layout, apiGateway.CreateTime) |
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 think here you can just use time.RFC3339Nano
instead of your own layout
providers/gcp/gateway/gateway.go
Outdated
} | ||
|
||
for _, apiGateway := range apiGateways.Gateways { | ||
fmt.Printf("%+v\n", apiGateway) |
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.
If that's for debug purpose, please get rid of this
c2b730b
to
add89c6
Compare
@ShubhamPalriwala I've fixed your PR based on Enes feedback so I can include it in this week release |
Problem
Closes #675
Solution
Notes
Just like Redis support #709, this also has to query all the zones and does not work with the "global" tag. As of now, both of the methods are called separately hence the same regions call happen twice.
In the near future, a separate feature to just make 1 call and then use that in both the places saving up time as well as compute.
Checklist