61 lines
2.2 KiB
JSON
61 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"required": ["replicaCount", "image", "branding", "middleware", "auth"],
|
|
"properties": {
|
|
"fullnameOverride": {"type": "string", "minLength": 1},
|
|
"replicaCount": {"type": "integer", "minimum": 1},
|
|
"image": {
|
|
"type": "object",
|
|
"required": ["repository", "tag", "digest", "pullPolicy"],
|
|
"properties": {
|
|
"repository": {"type": "string", "minLength": 1},
|
|
"tag": {"type": "string", "minLength": 1},
|
|
"digest": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
|
|
"pullPolicy": {"enum": ["Always", "IfNotPresent", "Never"]}
|
|
}
|
|
},
|
|
"branding": {
|
|
"type": "object",
|
|
"required": ["reverseProxyName", "authenticationName", "clusterReachedText"],
|
|
"properties": {
|
|
"reverseProxyName": {"type": "string", "minLength": 1},
|
|
"authenticationName": {"type": "string", "minLength": 1},
|
|
"clusterReachedText": {"type": "string", "minLength": 1}
|
|
}
|
|
},
|
|
"middleware": {
|
|
"type": "object",
|
|
"required": ["name", "status"],
|
|
"properties": {
|
|
"name": {"type": "string", "minLength": 1},
|
|
"status": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {"type": "string", "pattern": "^[1-5][0-9]{2}(-[1-5][0-9]{2})?$"}
|
|
}
|
|
}
|
|
},
|
|
"auth": {
|
|
"type": "object",
|
|
"required": ["enabled", "marker", "contextMiddlewareName", "forwardMiddlewareName", "checkedMiddlewareName", "chainMiddlewareName", "forwardAddress"],
|
|
"properties": {
|
|
"enabled": {"type": "boolean"},
|
|
"marker": {"type": "string", "minLength": 1},
|
|
"contextMiddlewareName": {"type": "string", "minLength": 1},
|
|
"forwardMiddlewareName": {"type": "string", "minLength": 1},
|
|
"checkedMiddlewareName": {"type": "string", "minLength": 1},
|
|
"chainMiddlewareName": {"type": "string", "minLength": 1},
|
|
"forwardAddress": {"type": "string"}
|
|
},
|
|
"allOf": [
|
|
{
|
|
"if": {"properties": {"enabled": {"const": true}}},
|
|
"then": {"properties": {"forwardAddress": {"type": "string", "format": "uri", "minLength": 1}}}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|