Skip to content

WIP: Add Google Cloud Functions support - #2568

Closed
pmuens wants to merge 32 commits into
masterfrom
add-google-cloud-functions-support
Closed

pmuens wants to merge 32 commits into
masterfrom
add-google-cloud-functions-support

Conversation

@pmuens

@pmuens pmuens commented Oct 29, 2016 •

Copy link
Copy Markdown
Contributor

What did you implement:

Closes #1510

This is a WIP PR which adds the Google Cloud functions integration to the Serverless framework.

How did you implement it:

Wrote integration plugins for the serverless plugins like deploy, invoke, remove, etc.

How can we verify it:

Read the README at https://github.com/serverless/serverless/tree/add-google-cloud-functions-support/lib/plugins/google

Implemented features

  • create (Note: We need to add a template to the core (which is not recommended as this won't be merged into master) or we need a way for plugins to inject templates from their codebase)
  • deploy
  • remove
  • info
  • invoke
  • info
  • deploy function (Not yet supported by Google Cloud Functions API)

Todos:

  • Write tests
  • Write documentation
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Provide verification config/commands/resources
  • Change ready for review message below
  • Run npm shrinkwrap

Is this ready for review?: NO

@pmuens
pmuens force-pushed the add-google-cloud-functions-support branch from 9c739f0 to 60ca680 Compare October 29, 2016 11:00
@pmuens pmuens mentioned this pull request Oct 29, 2016
@pmuens
pmuens force-pushed the add-google-cloud-functions-support branch 8 times, most recently from b747c81 to 0975c83 Compare November 3, 2016 10:26
@pmuens pmuens self-assigned this Nov 3, 2016
@pmuens
pmuens force-pushed the add-google-cloud-functions-support branch 3 times, most recently from b191ffc to 34c0cea Compare November 3, 2016 14:08
@pmuens

pmuens commented Nov 3, 2016 •

Copy link
Copy Markdown
Contributor Author

@ac360 @eahefnawy @flomotlik Just updated the PR so that the info plugin and the bucket event source is in place.

I splitted the one large commit up into logical commits so that it's easier to review. Furthermore I've update the README so that you get a full example with all event types and the corresponding handlers.

I looked into deploy function support. However the current Google Cloud Functions API don't support direct code pushed to functions.
It only supports the updating of the .zip file in the bucket. We could implement that but this means that after 5 deploy function calls the other functions won't work anymore as the corresponding .zip file (the old one the not updated functions rely on) will be removed. That's why I think the feature is not necessary for this MVP implementation.

Would be great if you could play around with it and share your thoughts.

@flomotlik

Copy link
Copy Markdown
Contributor

@pmuens

pmuens commented Nov 4, 2016 •

Copy link
Copy Markdown
Contributor Author

@flomotlik yes, I can do that.

Before moving it there I'll fix the bugs @ac360 mentioned. Furthermore we might want to discuss how this plugin should work.

I would not add a google-nodejs template to the core system as it should be in the plugin (see #2498).

Should the user be able to add a serverless-provider-google which encapsulates all the other plugins? What should this name be?

Should I work in test coverage once it's moved?

@pmuens
pmuens force-pushed the add-google-cloud-functions-support branch 2 times, most recently from e2c5612 to 36af5bb Compare November 4, 2016 13:28
@pmuens
pmuens force-pushed the add-google-cloud-functions-support branch from d22ae7f to bb9cda6 Compare November 10, 2016 14:16
@pmuens
pmuens force-pushed the add-google-cloud-functions-support branch 2 times, most recently from 086eec2 to c35eb3b Compare November 10, 2016 16:46
@pmuens
pmuens force-pushed the add-google-cloud-functions-support branch from c35eb3b to dfe384c Compare November 10, 2016 17:02
@pmuens

pmuens commented Nov 10, 2016

Copy link
Copy Markdown
Contributor Author

Closing this one as it has been moved to the dedicated plugin repository: --> https://github.com/serverless/google-cloud-functions-plugin

@pmuens pmuens closed this Nov 10, 2016
@pmuens
pmuens deleted the add-google-cloud-functions-support branch November 10, 2016 17:27
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.

3 participants