Skip to content

added support 2nd generation cloud function #857

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

Closed
wants to merge 0 commits into from

Conversation

som-nitjsr
Copy link
Contributor

adding support for 2nd generation cloud function and using http trigger as in case of enterprise there are lot of data and it takes lots of time . In my case function was getting timed out. so moved it to second generation where http trigger has 60 minutes of time out.
#817

@juliocc
Copy link
Collaborator

juliocc commented Oct 5, 2022

Thanks for this PR. Really nice idea!

A few comments:

  • Can we split this in two separate PRs, one for the Cloud Function module and another one for the changes networking dashboard.
  • For the Cloud Function module, can you reuse the existing function_config.memory field instead of introducing memory_2ndGen?
  • For the module again, can you change function_version to a simple boolean v2?

@som-nitjsr
Copy link
Contributor Author

Thanks for this PR. Really nice idea!

A few comments:

  • Can we split this in two separate PRs, one for the Cloud Function module and another one for the changes networking dashboard.
  • For the Cloud Function module, can you reuse the existing function_config.memory field instead of introducing memory_2ndGen?
  • For the module again, can you change function_version to a simple boolean v2?

Hi @juliocc i have addressed both comments.

Copy link
Collaborator

@juliocc juliocc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes.

As a general note, it's bad practice to ask the user comment/uncomment code to toggle features. Can you adapt the code so that you have a flag to enable the use of CFv2 in the dashboard?

And finally, please make sure to format your terraform code using terraform fmt

@juliocc
Copy link
Collaborator

juliocc commented Oct 6, 2022

As a general note, it's bad practice to ask the user comment/uncomment code to toggle features. Can you adapt the code so that you have a flag to enable the use of CFv2 in the dashboard?

And finally, please make sure to format your terraform code using terraform fmt

You still haven't addressed these two points.

@som-nitjsr
Copy link
Contributor Author

As a general note, it's bad practice to ask the user comment/uncomment code to toggle features. Can you adapt the code so that you have a flag to enable the use of CFv2 in the dashboard?
And finally, please make sure to format your terraform code using terraform fmt

You still haven't addressed these two points.
@juliocc i have done the changes.

@juliocc
Copy link
Collaborator

juliocc commented Oct 10, 2022

@som-nitjsr can you rebase and fix the conflicts?

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.

2 participants