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

fixes GEN 2 cloudfunctions function not getting listed #568

Merged

Conversation

ashutoshmore658
Copy link
Contributor

This PR fixes following bug issue:
#565

@bigdatasourav bigdatasourav linked an issue Apr 22, 2024 that may be closed by this pull request
@misraved
Copy link
Contributor

@ashutoshmore658 welcome to Steampipe and thank you so much for raising the PR 👍.

Could you please add the example queries in the PR removing the sensitive data?

@ashutoshmore658
Copy link
Contributor Author

ashutoshmore658 commented Apr 22, 2024

Sure @misraved , thank you for replying. could you please elaborate ? exactly what are the example queries ?, so that I can get it in to the action.

@misraved
Copy link
Contributor

@ashutoshmore658 please take a look at the following suggestions for the PR:

  • Since we are using a new version of the cloud functions, I think it is important to verify if all the Gen 2 cloud functions are getting listed or not. Please add an example query that enlists both the Gen 1 and Gen 2 cloud functions.
  • Use the select * from gcp_cloudfunctions_function query on the main and ashutoshmore658:Gcp-CloudFunctions-Gen2-Flooding branch to verify that other columns haven't been affected (difference in the datatype or output structure) by this change.

@ashutoshmore658
Copy link
Contributor Author

Thank you for the detailed explanation @misraved , I will act accordingly.

@ashutoshmore658
Copy link
Contributor Author

ashutoshmore658 commented Apr 29, 2024

Hi @misraved ,

with building GCP Steampipe plugin from Gcp-CloudFunctions-Gen2-Flooding branch from this branches code and querying the vpc for cloud function names, in below image you can see all the cloud functions of both GEN 1 origin and GEN 2 origin are also being listed. following images are proofs for the same.

Branch:
branchgen2

Results received:
resultgen2

After removing the branch plugin from the Steampipes plugin directory and switching the branch of the GCP Steampipe back to main branch, rebuilding the plugin from scratch, and reconfiguiring the project, and after that querying the VPC listis only GEN 1 functions .

Results received:
mainresult

This PR is adding the GEN 2 functions which were missing in previous version of gcp steampipe plugin and it is not breaking anything.

@ashutoshmore658
Copy link
Contributor Author

ashutoshmore658 commented Apr 30, 2024

@misraved I am adding some more commits in the current PR, but how to show the results, cause security reasons are involved ?

What else is needed to merge this PR ?

@misraved
Copy link
Contributor

@ashutoshmore658 what commits are you trying to add? I feel the results are sufficient for the PR to be merged 👍.

@ashutoshmore658
Copy link
Contributor Author

ashutoshmore658 commented Apr 30, 2024

@misraved other columns values such as Https Trigress, Ingress Count etc which were missing, or for them should I raise another PR ?
Another confusion is if the results are okay, when we are going to merge this PR

@misraved
Copy link
Contributor

misraved commented May 2, 2024

@ashutoshmore658 we can go ahead and raise a new PR for those changes. Meanwhile, let me merge this PR 👍.

Great work 🎉 !!

@misraved misraved merged commit 1648ae5 into turbot:main May 2, 2024
1 check passed
@ashutoshmore658
Copy link
Contributor Author

@misraved Thank you, It's been a pleasure collaborating with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gcp_cloudfunctions_function is not listing gen2 cloud functions
4 participants