apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.5k stars 1.16k forks source link

Support triggers and rules under package? #1825

Open jthomas opened 7 years ago

jthomas commented 7 years ago

Packages are a convenient mechanism to group related openwhisk resources into "services".

According to the documentation, packages can only currently contain actions and feeds.

Would it be possible to extend this to include triggers and rules?

rabbah commented 7 years ago

This is easier to do/planned as part of this https://github.com/openwhisk/openwhisk/issues/219#issuecomment-272951007.

jthomas commented 6 years ago

Is this still planned?

rabbah commented 6 years ago

Yes we should do this. Hasn’t been a priority though with a lot of work on performance and scale out. There are some nuanced though that need to be worked out.

mrutkows commented 6 years ago

@rabbah @jthomas agree. We have been experiencing name collisions with wskdeploy tests as devs copy triggers and rules (and do not change their) names from one test file to another and the results can be quite frustrating as we automate.

jthomas commented 6 years ago

Good point @mrutkows. I have the same issue in The Serverless Framework. https://github.com/serverless/serverless-openwhisk/issues/29

rabbah commented 6 years ago

As noted here: https://github.com/apache/incubator-openwhisk/issues/3247#issuecomment-363112438 there are some nuances we need to address, but otherwise allowing a trigger or rule to be nested in a package is plausible.

ScottChapman commented 6 years ago

Yea, I think it would be wise to bump the priority of this. First it just feel arbitrary. And second and you start getting more and more integrations it will become more and more problematic for users.

yumeforever commented 6 years ago

Any news on this thread? Any other suggested threads to follow?

rabbah commented 6 years ago

The other relevant bit is https://github.com/apache/incubator-openwhisk/issues/219#issuecomment-272951007 but there isn't any progress yet as far as I know on this.

akrabat commented 6 years ago

Discovering that triggers and rules couldn't be in packages threw me completely! This would be really handy.

jthomas commented 5 years ago

Still hoping for this in 2019 🙏

csantanapr commented 5 years ago

no one is looking into this, it's open for grabs