Skip to content

Commit

Permalink
add example access fission function under specific ns
Browse files Browse the repository at this point in the history
  • Loading branch information
xiekeyang committed Jul 26, 2018
1 parent 50179b2 commit 4afcfc7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/misc/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ set -x

fission env create --name binary --image fission/binary-env
fission fn create --name dump --env binary --deploy ./dump.sh
fission fn create --name multinsdump --fns fission-function --env binary --deploy ./dump.sh

# Deploy workflows
fission fn create --name inputs --env workflow --src ./inputs.wf.yaml
fission fn create --name fibonacci --env workflow --src ./fibonacci.wf.yaml
fission fn create --name sleepalot --env workflow --src ./sleepalot.wf.yaml
fission fn create --name fission-inputs --env workflow --src ./fission-inputs.wf.yaml
fission fn create --name fission-inputs --env workflow --src ./fission-inputs.wf.yaml
fission fn create --name multinamespace --fns fission-function --env workflow --src ./multinamespace.wf.yaml
10 changes: 10 additions & 0 deletions examples/misc/multinamespace.wf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# multinamespace shows you how to access and refere a fission function in task under specific namespace.
#
# Usage example: fission fn test --name multinamespace --fns fission-function -b 'Hello World'
apiVersion: 1
output: multinamespace

tasks:
multinamespace:
run: fission://fission-function/multinsdump
inputs: "{ $.Invocation.Inputs }"

0 comments on commit 4afcfc7

Please sign in to comment.