Here is the list of YAML key/value in manifest/deployment file for which Whisk Deploy
supports interpolation including evaluating strings using environment variables.
For example, $USERNAME
and ${USERNAME}
evaluates to environment variable USERNAME
.
It also supports double $
notation, for example, $${USERNAME}
evaluates to ${USERNAME}
.
project:
name: helloworld
packages:
$PACKAGE_NAME_1:
actions:
...
${PACKAGE_NAME_2}:
actions:
...
${PACKAGE_NAME_3}_package:
actions:
...
project:
name: helloworld
packages:
helloworld:
actions:
hello:
function: hello.js
annotation:
username: $USERNAME
password: ${PASSWORD}
host: http://${USERNAME}@${PASSWORD}/${URL}.com
project:
name: helloworld
packages:
helloworld:
actions:
hello1:
function: $OPENWHISK_FUNCTION_FILE
runtime: nodejs:default
hello2:
function: ${OPENWHISK_FUNCTION_FILE}
runtime: nodejs:default
hello3:
function: ${OPENWHISK_FUNCTION_PYTHON}.py
hello4:
function: https://${OPENWHISK_FUNCTION_GITHUB_DIR}.js function: github.com/apache/openwhisk-test/packages/helloworlds
hello5:
function: $OPENWHISK_FUNCTION_FILE
docker: $DOCKER_HUB_IMAGE
project:
name: helloworld
packages:
helloworld:
triggers:
everyhour:
feed: /whisk.system/alarms/alarm
message-trigger:
feed: Cloud_Functions_${KAFKA_INSTANCE}_Credentials-1/messageHubFeed
github-trigger:
feed: ${GITHUB_PACKAGE}/webhook
project:
name: helloworld
packages:
helloworld:
actions:
hello:
inputs:
username: $USERNAME
password: ${PASSWORD}
host: https://${USERNAME}@${PASSWORD}/github.com
project:
name: helloworld
packages:
helloworld:
actions:
hello:
inputs:
username: $USERNAME
password: ${PASSWORD}
host: https://${USERNAME}@${PASSWORD}/github.com