Optional Environment Parameters #2467
-
We're upgrading to v1 and saw that using parameters file directly in actions (like install) is deprecated so we also move to a set too. schemaType: ParameterSet
schemaVersion: 1.0.1
namespace: ""
name: bundle1
parameters:
- name: param1
source:
env: PARAM1
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I just double checked against Porter v0.38 and we have always required that environment variables specified in a parameter set exist. Can you share what you are trying to accomplish and working command in v0 that you are migrating to v1? |
Beta Was this translation helpful? Give feedback.
-
Porter v0 never supported using undefined environment variables in a parameter set. Below is an example to demonstrate.
We can discuss an enhancement to support attempting to resolve an optional parameter against a source, and what porter should do when it's not found, but it isn't something that ever worked in Porter. |
Beta Was this translation helpful? Give feedback.
-
I have created #2474 to track adding support for resolving optional params/creds in a set, falling back to the bundle default if they cannot be resolved. |
Beta Was this translation helpful? Give feedback.
I have created #2474 to track adding support for resolving optional params/creds in a set, falling back to the bundle default if they cannot be resolved.