Porter ParameterSet File Format 1.1.0
Porter ParameterSet File Format 1.1.0
Parameter Sets can be defined in either json or yaml. You can use this json schema to validate a parameter set file.
Changes
Value sources (parameters.source.value
) may now contain strings, numbers and
booleans as well as arrays and objects containing any of the aforementioned
types without converting them to strings first.
Example
schemaType: ParameterSet
schemaVersion: 1.1.0
name: myparams
namespace: staging
labels:
team: redteam
owner: xianglu
parameters:
- name: colors
source:
value:
red: [255, 0, 0]
green: [0, 255, 0]
blue: [0, 0, 255]
- name: log-level
source:
env: LOG_LEVEL
- name: connStr
source:
secret: my-connection-string
Field | Required | Description |
---|---|---|
schemaType | false | The type of document. |
schemaVersion | true | The version of the Parameter Set schema used in this file. |
name | true | The name of the parameter set. |
namespace | false | The namespace in which the parameter set is defined. Defaults to the empty (global) namespace. |
labels | false | A set of key-value pairs associated with the parameter set. |
parameters | true | A list of parameters and instructions for Porter to resolve the parameter value. |
parameters.name | true | The name of the parameter as defined in the bundle. |
parameters.source | true | Specifies how the parameter should be resolved. Must have only one child property: secret, value, env, path, or command |