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

Add Support for API Gateways in GCP #715

Conversation

ShubhamPalriwala
Copy link
Contributor

Problem

Closes #675

Solution

Screenshot_2023-04-10-20-39-14_4920x1920

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

  • Code follows the contributing guidelines
  • Changes have been thoroughly tested
  • Documentation has been updated, if necessary
  • Any dependencies have been added to the project, if necessary

@mlabouardy mlabouardy added the gcp label Apr 10, 2023
@mlabouardy mlabouardy added this to the v3.0.12 milestone Apr 10, 2023
@mlabouardy mlabouardy requested a review from eneskaya April 11, 2023 10:29
return resources, err
}

RegionsLoop:
Copy link
Contributor

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.

fmt.Printf("%+v\n", apiGateway)

layout := "2006-01-02T15:04:05.999999999Z"
parsedCreatedTime, err := time.Parse(layout, apiGateway.CreateTime)
Copy link
Contributor

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

}

for _, apiGateway := range apiGateways.Gateways {
fmt.Printf("%+v\n", apiGateway)
Copy link
Contributor

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

@mlabouardy mlabouardy force-pushed the feature/675-support-gcp-api-gateway branch from c2b730b to add89c6 Compare April 14, 2023 13:45
@mlabouardy
Copy link
Collaborator

@ShubhamPalriwala I've fixed your PR based on Enes feedback so I can include it in this week release

@mlabouardy mlabouardy merged commit f4e819d into tailwarden:develop Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants