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

chore: Update from functions to functions2 #196

Merged

Conversation

a5chin
Copy link
Contributor

@a5chin a5chin commented Jan 30, 2024

Summary

The version of cloud functions written in terraform was 1st gen, so I updated it to 2nd gen.
google_cloudfunctions_function->google_cloudfunctions2_function

Why you need this PR

As shown below, the 2nd generation is recommended over the 1st generation in Google Cloud.

We recommend that you choose Cloud Functions (2nd gen) for new functions wherever possible. However, we plan to continue supporting Cloud Functions (1st gen).

https://cloud.google.com/functions/docs/concepts/version-comparison

What I did

The following 2 files have been updated.

  • autoscalse/terraform/modules/autoscaler-functions/main.tf
  • autoscalse/terraform/modules/forwarder/main.tf

FYI

Already tested with our products.

@alexlo03
Copy link
Contributor

alexlo03 commented Sep 9, 2024

Can I suggest this go into V3?

@alexlo03
Copy link
Contributor

@henrybell if you're looking to cut v3 please consider this one

@henrybell henrybell added the enhancement New feature or request label Oct 17, 2024
@henrybell henrybell force-pushed the feature/cloudfunctions2 branch 2 times, most recently from 0e1b33d to 6d1a731 Compare October 21, 2024 12:29
@henrybell
Copy link
Collaborator

/gcbrun

@henrybell henrybell changed the title Update from functions to functions2 chore: Update from functions to functions2 Oct 21, 2024
@henrybell
Copy link
Collaborator

/gcbrun

2 similar comments
@henrybell
Copy link
Collaborator

/gcbrun

@henrybell
Copy link
Collaborator

/gcbrun

@henrybell henrybell requested a review from nielm October 21, 2024 14:13
@henrybell henrybell force-pushed the feature/cloudfunctions2 branch from c23dc72 to 4875218 Compare October 21, 2024 14:25
@henrybell
Copy link
Collaborator

/gcbrun

@nielm nielm force-pushed the feature/cloudfunctions2 branch from 4875218 to d20dfa3 Compare October 25, 2024 15:39
@nielm
Copy link
Collaborator

nielm commented Oct 25, 2024

/gcbrun

terraform/modules/forwarder/main.tf Outdated Show resolved Hide resolved
terraform/modules/forwarder/main.tf Show resolved Hide resolved
terraform/modules/autoscaler-functions/main.tf Outdated Show resolved Hide resolved
terraform/modules/autoscaler-functions/main.tf Outdated Show resolved Hide resolved
@nielm nielm force-pushed the feature/cloudfunctions2 branch from d20dfa3 to 87a221c Compare October 25, 2024 17:11
@nielm
Copy link
Collaborator

nielm commented Oct 25, 2024

The most recent commit 87a221c is a squash of the existing commits and an update of the commit message so that the breaking change information appears in the changelog

Copy link
Collaborator

@nielm nielm left a comment

Choose a reason for hiding this comment

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

LGTM

@henrybell
Copy link
Collaborator

/gcbrun

This changes the runtime from Cloud Functions (1st Gen) to Cloud Run
Functions (aka Cloud Functions (2nd gen)).

BREAKING CHANGE: Use of Cloud Run Functions will require additional
APIs to be enabled before redeploying - see the documentation for
cloud functions deployment for the command to run.

Co-authored-by: Niel Markwick <[email protected]>
Co-authored-by: henrybell <[email protected]>
@henrybell henrybell force-pushed the feature/cloudfunctions2 branch from 87a221c to d8dfe3a Compare October 27, 2024 12:31
@henrybell
Copy link
Collaborator

/gcbrun

1 similar comment
@henrybell
Copy link
Collaborator

/gcbrun

@henrybell henrybell merged commit f9480b0 into cloudspannerecosystem:main Oct 27, 2024
9 checks passed
@henrybell
Copy link
Collaborator

Thanks @a5chin!

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

Successfully merging this pull request may close these issues.

4 participants