apache / apache/openwhisk-wskdeploy

Update Spec - Env. Variable Interpolation in JSON Inputs

Open
#769 0 comments 0 reactions 1 assignee Claimed by @mrutkows View on GitHub
priority: medium specification
Dominant language
Go
Stars
75
Forks
73
PR merge metrics
No merged PRs in 30d

Description

With a recent PR #766, we are adding support to interpolate input values using env. variables such that:

```
os.SetEnv("USERNAME", "MY_USERNAME")
os.SetEnv("PASSWORD", "MY_PASSWORD")
```

manifest.yaml:

```
inputs:
type: json
GitHub_credentials: {
username: ${USERNAME},
password: ${PASSWORD}
}
```

Action is composed with `username` set to `MY_USERNAME ` and `password` set to `MY_PASSWORD`.

With manifest.yaml:

```
inputs:
type: json
GitHub_credentials: {
username: $${USERNAME},
password: $${PASSWORD}
}
```

Action is composed with `username` set to `${USERNAME} ` and `password` set to `${PASSWORD}` escaping interpolation with double dollar sign, following terraform syntax at https://www.terraform.io/docs/configuration/interpolation.html.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.