helm-charts/charts/library/common/schemas/serviceMonitor.json
2024-04-09 15:21:01 +02:00

65 lines
1.5 KiB
JSON

{
"instance": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"default": true
},
"annotations": {
"$ref": "definitions.json#/annotations"
},
"labels": {
"$ref": "definitions.json#/labels"
},
"nameOverride": {
"type": "string"
},
"endpoints": {
"type": "array",
"items": {
"type": "object"
}
},
"selector": {
"type": "object",
"additionalProperties": false,
"properties": {
"matchLabels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"matchExpressions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {"type": "string"},
"operator": {"type": "string"},
"values": {
"type": "array",
"items": {"type": "string"}
}
}
}
}
}
},
"serviceName": {
"type": "string"
},
"targetLabels": {
"type": "array"
}
},
"oneOf": [{"required": ["serviceName"]}, {"required": ["selector"]}],
"dependencies": {
"selector": {"not": {"required": ["serviceName"]}},
"serviceName": {"not": {"required": ["selector"]}}
}
}
}