[GitHub] pritidesai commented on issue #884: passing parameters between manifest and deploy.yml

2018-05-03 Thread GitBox
pritidesai commented on issue #884: passing parameters between manifest and 
deploy.yml
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/884#issuecomment-386391735
 
 
   @jasonpet nope action doesn't show such parameter, also, @dubee referenced 
couple of issues from CLI repo ...


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] pritidesai commented on issue #884: passing parameters between manifest and deploy.yml

2018-05-02 Thread GitBox
pritidesai commented on issue #884: passing parameters between manifest and 
deploy.yml
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/884#issuecomment-386160050
 
 
   It does show payload on trigger with:
   
   ```
   wsk trigger get periodic
  "response": {
   "result": {
   "config": {
   "cron": "*/2 * * * *",
   "name": "periodic",
   "namespace": "",
   "payload": {
   "name": "Odin",
   "place": "Asgard"
   }
   },
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] pritidesai commented on issue #884: passing parameters between manifest and deploy.yml

2018-05-02 Thread GitBox
pritidesai commented on issue #884: passing parameters between manifest and 
deploy.yml
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/884#issuecomment-386159548
 
 
   thanks @csantanapr I talked to @dubee and tried the same with 
`trigger_payload` without any success:
   
   Trigger create with:
   
   ```wsk trigger create locationUpdate --param name Odin --param place 
Asgard```
   
   Creates parameters under *Parameters* section in UI
   
   
![image](https://user-images.githubusercontent.com/206285/39555224-81f0572c-4e2c-11e8-8ad4-c59ba9e69249.png)
   
   But when I create alarm trigger with:
   
   ```wsk trigger create periodic   --feed /whisk.system/alarms/alarm   --param 
cron "*/2 * * * *"   --param trigger_payload 
"{\"name\":\"Odin\",\"place\":\"Asgard\"}"```
   
   doesnt show any *parameters* in UI


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] pritidesai commented on issue #884: passing parameters between manifest and deploy.yml

2018-05-02 Thread GitBox
pritidesai commented on issue #884: passing parameters between manifest and 
deploy.yml
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/884#issuecomment-386107239
 
 
   Confirmed with @beemarie that it does work through IBM Cloud Functions UI.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] pritidesai commented on issue #884: passing parameters between manifest and deploy.yml

2018-05-02 Thread GitBox
pritidesai commented on issue #884: passing parameters between manifest and 
deploy.yml
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/884#issuecomment-386106835
 
 
   the same behavior is seen with `wsk` CLI:
   
   ```wsk trigger create my-alarm-trigger-1 --feed /whisk.system/alarms/alarm 
--param name Priti --param place Home --param cron "* * * * *"```
   
   Creating rule:
   
   ```wsk rule create my-rule-1 my-alarm-trigger-1 
hello_world_package/hello_world_triggerrule```
   
   Fire trigger:
   
   ```wsk trigger fire my-alarm-trigger-1```
   
   Result had no name and place assigned:
   
   ```wsk activation get 1b150c7339ab4074950c7339ab40741a ... "result": {
   "details": "You have 0 children and are 0 m. tall.",
   "greeting": "Hello,  from "```
   
   
   V/S Non Feed Trigger:
   
   ```wsk trigger create my-no-alarm-trigger --param name Priti --param place 
Home```
   
   Creating rule with:
   
   ```wsk rule create my-rule-2 my-no-alarm-trigger 
hello_world_package/hello_world_triggerrule```
   
   Fire trigger and check the result:
   
   ```"result": {
   "details": "You have 0 children and are 0 m. tall.",
   "greeting": "Hello, Priti from Home"
   }```
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] pritidesai commented on issue #884: passing parameters between manifest and deploy.yml

2018-05-02 Thread GitBox
pritidesai commented on issue #884: passing parameters between manifest and 
deploy.yml
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/884#issuecomment-386106835
 
 
   the same behavior is seen with `wsk` CLI:
   
   ```wsk trigger create my-alarm-trigger-1 --feed /whisk.system/alarms/alarm 
--param name Priti --param place Home --param cron "* * * * *"```
   
   Creating rule:
   
   ```wsk rule create my-rule-1 my-alarm-trigger-1 
hello_world_package/hello_world_triggerrule```
   
   Fire trigger:
   
   ```wsk trigger fire my-alarm-trigger-1```
   
   Result had no name and place assigned:
   
   ```
   wsk activation get 1b150c7339ab4074950c7339ab40741a ... "result": {
   "details": "You have 0 children and are 0 m. tall.",
   "greeting": "Hello,  from "
   ```
   
   
   V/S Non Feed Trigger:
   
   ```wsk trigger create my-no-alarm-trigger --param name Priti --param place 
Home```
   
   Creating rule with:
   
   ```wsk rule create my-rule-2 my-no-alarm-trigger 
hello_world_package/hello_world_triggerrule```
   
   Fire trigger and check the result:
   
   ```"result": {
   "details": "You have 0 children and are 0 m. tall.",
   "greeting": "Hello, Priti from Home"
   }
   ```
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] pritidesai commented on issue #884: passing parameters between manifest and deploy.yml

2018-05-01 Thread GitBox
pritidesai commented on issue #884: passing parameters between manifest and 
deploy.yml
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/884#issuecomment-385750203
 
 
   Once the trigger is defined as alarm type, the trigger inputs are not 
propagated to actions:
   
   I modified manifest to:
   
   ```
   triggers:
 meetPerson:
   feed: /whisk.system/alarms/alarm
   inputs:
 name: string
 place: string
 children: integer
 height: float
   ```
   
   deployment to:
   
   ```
   inputs:
 name: Elrond
 place: Rivendell
 children: 3
 height: 1.88
 cron: "0 7 29,30 6 *"
   ```
   
   `wsk` activation returns:
   
   ```
   "result": {
   "details": "You have 0 children and are 0 m. tall.",
   "greeting": "Hello,  from "
   }
   ```
   
   instead of:
   
   ```
   "result": {
   "details": "You have 3 children and are 1.88 m. tall.",
   "greeting": "Hello, Elrond from Rivendell"
   }
   ```


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services