-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvalues.schema.json
More file actions
187 lines (187 loc) · 6.62 KB
/
values.schema.json
File metadata and controls
187 lines (187 loc) · 6.62 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "Twingate Kubernetes Operator Chart Schema",
"properties": {
"image": {
"type": "object",
"default": {},
"title": "The image Schema",
"properties": {
"repository": {
"type": "string",
"default": "",
"title": "The repository Schema",
"examples": [
"twingate/connector"
]
},
"tag": {
"oneOf": [
{"type": "integer"},
{"type": "string"}
],
"default": 0,
"title": "The tag Schema",
"examples": [
1, "latest"
]
},
"pullPolicy": {
"type": "string",
"default": "",
"title": "The pullPolicy Schema",
"enum": [
"Always",
"IfNotPresent",
"Never"
]
}
},
"examples": [{
"repository": "twingate/connector",
"tag": 1,
"pullPolicy": "Always"
}]
},
"extraEnvVars": {
"type": "array",
"description": "Array with extra environment variables to add to the operator container",
"default": [],
"items": {}
},
"twingateOperator": {
"type": "object",
"default": {},
"title": "The twingateOperator Schema",
"allOf": [
{
"required": ["network"]
},
{
"anyOf": [
{
"required": ["apiKey"]
},
{
"required": ["existingAPIKeySecret"]
}
]
},
{
"oneOf": [
{
"required": ["remoteNetworkId"]
},
{
"required": ["remoteNetworkName"]
},
{
"required": ["existingRemoteNetworkIdSecret"]
}
]
}
],
"properties": {
"apiKey": { "type": "string" },
"existingAPIKeySecret": {
"type": "object",
"title": "An existing secret with the API Key to be used by the operator.",
"required": ["name", "key"],
"properties": {
"name": {
"type": "string",
"title": "The name of the Secret object",
"examples": [
"twingate-operator"
]
},
"key": {
"type": "string",
"title": "The key for the API Key value in the Secret object",
"examples": [
"TWINGATE_API_KEY"
]
}
},
"examples": [{
"name": "twingate-operator",
"key": "apiKey"
}]
},
"existingRemoteNetworkIdSecret": {
"type": "object",
"title": "An existing secret containing the reote network ID.",
"required": ["name", "key"],
"properties": {
"name": {
"type": "string",
"title": "The name of the Secret object",
"examples": [
"twingate-operator"
]
},
"key": {
"type": "string",
"title": "The key for the remote network ID value in the Secret object",
"examples": [
"REMOTE_NETWORK_ID"
]
}
}
},
"network": { "type": "string" },
"remoteNetworkId": { "type": "string" },
"logFormat": {
"type": "string",
"default": "full",
"enum": [
"json",
"plain",
"full"
]
},
"logVerbosity": {
"type": "string",
"enum": [
"quiet",
"verbose",
"debug"
]
},
"defaultResourceTags": {
"type": "object",
"description": "Map of string keys and values that will be used as tags in every TwingateResource object managed by the operator",
"default": {},
"additionalProperties": {
"type": "string"
}
},
"namespaces": {
"type": "array",
"description": "Array of namespaces to monitor by the operator",
"items": { "type": "string" },
"default": []
}
},
"examples": [{
"apiKey": "sdlkwdlsknsldknsldkcnm",
"network": "my-network",
"remoteNetworkId": "UmVtb3RlTmV0d29yazo5Njc0OTU="
}]
},
"rbac": {
"type": "object",
"title": "The rbac Schema",
"properties": {
"createAggregateClusterRoles": {
"type": "boolean",
"default": false,
"title": "Create RBAC aggregate cluster roles - adding Twingate CRD permissions to the Kubernetes default view/edit/admin roles."
}
},
"examples": [{
"createAggregateClusterRoles": true
}]
}
}
}