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

Command for repeatable execution #81

Closed
wants to merge 1 commit into from

Conversation

p0wl
Copy link
Contributor

@p0wl p0wl commented Feb 17, 2018

Hey! Thanks for your awesome project. During the Event Gateway Workshop at JeffConf Hamburg on Thursday @pmuens introduced us to this project and we were wondering why the configure command will fail when run with the same configuration multiple times.

By looking at the code I figured that the configure command actually only adds functions and subscriptions and even tries to add the given functions/subscriptions if they already exist.

If Event Gateway would be used in a CI/CD scenario I think it would be very nice to have a command that can be executed at any time (multiple times) and just ensures that the configuration of the Event Gateway is set up as given. This way the actual configuration can be saved to a git repository and a build tool/service can just execute the given configuration on every build.

So I tried to introduce a deploy command (naming is hard, sorry. I choose deploy because it is used at serverless and basically has the same behaviour: only apply changes) and some tests.

As I wanted to hear what the maintainers and users of fdk / Event Gateway think about this, I'll create this pull-request without documentation/... changes.

Let me know what you think!

@p0wl
Copy link
Contributor Author

p0wl commented Feb 18, 2018

hmm, I'm not sure why the tests are red. The failing tests do not seem related to my changes. Seems like the same tests failed in #80 as well. Master also seems to be red.

@nikgraf
Copy link
Contributor

nikgraf commented Feb 20, 2018

Hey @p0wl, thanks for your interest and effort!

Can I ask you to open an issue here at the Event Gateway SDK? https://github.com/serverless/event-gateway-sdk
Over the last week we fixed the tests and simplified the library. We should have added a notice here before. Sorry!

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.

None yet

2 participants