-
Notifications
You must be signed in to change notification settings - Fork 214
/
Copy pathparameter-set.schema.json
100 lines (100 loc) · 3.04 KB
/
parameter-set.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"$id": "https://porter.sh/schema/v1/parameter-set.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"valueMapping": {
"description": "Defines the source for a value",
"type": "object",
"properties": {
"name": {
"description": "Name of the mapped value",
"type": "string"
},
"source": {
"description": "Location where the value should be retrieved",
"type": "object",
"properties": {
"command": {
"description": "Command that should be executed on the host, using the output returned from the command as the value",
"type": "string"
},
"env": {
"description": "Name of the environment variable on the host that contains the value",
"type": "string"
},
"path": {
"description": "Path to a file on the host that contains the value",
"type": "string"
},
"secret": {
"description": "Name of a secret in a secret store that contains the value",
"type": "string"
},
"value": {
"description": "Hard-coded value",
"type": ["string", "number", "object", "array", "boolean"]
}
},
"additionalProperties": true
}
},
"additionalProperties": false,
"required": ["name", "source"]
}
},
"properties": {
"name": {
"description": "The name of the parameter set.",
"type": "string"
},
"namespace": {
"description": "The namespace in which the parameter set is defined.",
"type": "string"
},
"created": {
"description": "The date created, as an ISO-8601 Extended Format date string, as specified in the ECMAScript standard",
"type": "string"
},
"modified": {
"description": "The date modified, as an ISO-8601 Extended Format date string, as specified in the ECMAScript standard",
"type": "string"
},
"labels": {
"description": "Set of labels associated with the parameter set.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"parameters": {
"description": "Mappings of parameter names to their source value",
"type": "array",
"items": {
"$ref": "#/definitions/valueMapping"
}
},
"custom": {
"$comment": "reserved for custom extensions",
"type": "object",
"additionalProperties": true
},
"schemaType": {
"description": "The resource type of the current document.",
"type": "string",
"default": "ParameterSet"
},
"schemaVersion": {
"description": "Version of the parameter set schema to which this document adheres",
"type": "string",
"default": "1.1.0"
}
},
"required": [
"name",
"parameters",
"schemaVersion"
],
"title": "Parameter Set json schema",
"type": "object",
"additionalProperties": false
}