-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.yaml
69 lines (69 loc) · 2.6 KB
/
schema.yaml
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
#@data/values-schema
---
#@schema/title "Username"
#@schema/desc "Required string value."
#@schema/validation min_len=1
username: ""
#@schema/title "Replica amount"
#@schema/desc "Required integer value."
#@schema/validation min=1
replicas: 0
#@schema/title "Response Types"
#@schema/desc "Required string array."
#@schema/examples ("Example", ["<strong>Content-Length</strong>"])
#@schema/validation min_len=1
responseTypes:
- ""
#@schema/title "Credentials"
#@schema/desc "Required map.<br/><strong><em>Click on property to go to map definition.</em></strong>"
#@schema/nullable
#@schema/validation not_null=True
credential:
#@schema/title "Credential Name"
#@schema/desc "Credential name value."
#@schema/validation min_len=1
name: ""
#@schema/title "Cloud Credential"
#@schema/desc "Credential key value."
#@schema/validation min_len=1
cloud: ""
#@schema/title "Password"
#@schema/desc "Ensure exact string length."
#@schema/validation min_len=8, max_len=8
password: ""
#@schema/title "Port Number"
#@schema/desc "Ensure a value between min and max."
#@schema/validation min=1, max=65535
port: 1024
#@schema/title "Cloud Provider"
#@schema/desc "Enumeration of string values."
#@schema/validation one_of=["aws", "azure", "vsphere"]
provider: ""
#@schema/title "Auth Configuration"
#@schema/desc "Exactly one sub property is specified."
#@schema/validation one_not_null=["oidc", "ldap"]
config:
#@schema/title "OpenID Connect Protocol"
#@schema/desc "<strong>NOTE:</strong> Only one of <strong>oidc</strong> or <strong>ldap</strong> can be specified at a time!"
#@schema/nullable
oidc:
#@schema/title "Client ID"
#@schema/desc "OIDC Client ID."
client_id: ""
#@schema/title "Lightweight Directory Access Protocol"
#@schema/desc "<strong>NOTE:</strong> Only one of <strong>oidc</strong> or <strong>ldap</strong> can be specified at a time!"
#@schema/nullable
ldap:
#@schema/title "Hostname"
#@schema/desc "LDAP hostname."
host: ""
#@schema/title "LoadBalancer Selector"
#@schema/desc "Conditional validations can be described manually.<br/><strong><span class=\"text-red-600\">Required:</span></strong> when <strong>type</strong> equals <strong>LoadBalancer</strong>."
#@schema/validation min_len=1, when=lambda _, ctx: ctx.parent["type"] == "LoadBalancer"
selector: ""
#@schema/title "Environment Value"
#@schema/desc "Type is <strong>any</strong>, but we can use <strong>#@schema/examples</strong> to manually define values."
#@schema/examples ("Type", "[\"<strong>string</strong>\", \"<strong>integer</strong>\", \"<strong>boolean</strong>\"]")
#@schema/nullable
#@schema/type any=True
environment: ""