Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenWhisk Namespace dropdown is not easily injectable #8

Open
robertgo-IBM opened this issue Oct 2, 2017 · 0 comments
Open

OpenWhisk Namespace dropdown is not easily injectable #8

robertgo-IBM opened this issue Oct 2, 2017 · 0 comments

Comments

@robertgo-IBM
Copy link

It is possible to inject values into many types of nodes into a flow by using environmental variables - for example $(OPENWHISK_API_URL).

This is particularly useful when developing and deploying 12-Factor App-style Node-RED flows packaged in Docker images; values can easily be injected at container start-up:
docker run -d -e OPENWHISK_API_URL="someURL" -e OPENWHISK_AUTH="someKey"...

However, the pre-populated OpenWhisk Namespace dropdown in this node is not injectable, requiring the following steps to be taken:

  1. Manually open & edit the flows.json in a text editor and replace the current OpenWhisk Namespace value(s) with tokens.
  2. Add flows.json to Docker image.
  3. Add boot script to Docker image that uses sed to replace the tokens in the flow files with injected values, before invoking Node-RED.

Would it be possible to render the OpenWhisk Namespace field in this node injectable using simple environmental injection as described above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant