Validate receiver chart values with schema
This commit is contained in:
1 parent
3da15981bd
commit
8850f74f47
1 file changed
+81
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"replicaCount",
|
||||
"image",
|
||||
"service",
|
||||
"matrix",
|
||||
"templating",
|
||||
"serviceMonitor"
|
||||
],
|
||||
"properties": {
|
||||
"replicaCount": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"image": {
|
||||
"type": "object",
|
||||
"required": ["repository", "tag", "pullPolicy"],
|
||||
"properties": {
|
||||
"repository": {"type": "string", "minLength": 1},
|
||||
"tag": {"type": "string"},
|
||||
"pullPolicy": {"type": "string", "enum": ["Always", "IfNotPresent", "Never"]}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"service": {
|
||||
"type": "object",
|
||||
"required": ["type", "port"],
|
||||
"properties": {
|
||||
"type": {"type": "string", "enum": ["ClusterIP", "NodePort", "LoadBalancer"]},
|
||||
"port": {"type": "integer", "minimum": 1, "maximum": 65535}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"matrix": {
|
||||
"type": "object",
|
||||
"required": ["homeserverUrl", "userId", "roomMapping", "accessTokenSecret"],
|
||||
"properties": {
|
||||
"homeserverUrl": {"type": "string", "minLength": 1},
|
||||
"userId": {"type": "string", "minLength": 1},
|
||||
"roomMapping": {
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {"type": "string", "minLength": 1}
|
||||
},
|
||||
"accessTokenSecret": {
|
||||
"type": "object",
|
||||
"required": ["name", "key"],
|
||||
"properties": {
|
||||
"name": {"type": "string"},
|
||||
"key": {"type": "string", "minLength": 1}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"templating": {
|
||||
"type": "object",
|
||||
"required": ["firing", "resolved"],
|
||||
"properties": {
|
||||
"firing": {"type": "string", "minLength": 1},
|
||||
"resolved": {"type": "string", "minLength": 1}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"resources": {"type": "object"},
|
||||
"serviceMonitor": {
|
||||
"type": "object",
|
||||
"required": ["enabled"],
|
||||
"properties": {
|
||||
"enabled": {"type": "boolean"}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"nameOverride": {"type": "string"},
|
||||
"fullnameOverride": {"type": "string"}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user