2bd8fcc0c2
- ci/generate-schemas.sh extracts schemas from live cluster CRDs via kubectl - Generated schemas committed to schemas/ for CI use - Run `make schemas` to regenerate after CRD or K8s version changes - validate-apps.sh and validate-clusters.sh check local schemas first - CRD instances (Gateway, TLSRoute, Pooler, etc.) now validated instead of skipped - CustomResourceDefinition meta-type still skipped (no schema exists upstream)
228 lines
5.7 KiB
JSON
228 lines
5.7 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object"
|
|
},
|
|
"spec": {
|
|
"properties": {
|
|
"clusterName": {
|
|
"type": "string"
|
|
},
|
|
"containerDefaultResourceLimit": {
|
|
"properties": {
|
|
"limitsCpu": {
|
|
"type": "string"
|
|
},
|
|
"limitsMemory": {
|
|
"type": "string"
|
|
},
|
|
"requestsCpu": {
|
|
"type": "string"
|
|
},
|
|
"requestsMemory": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"displayName": {
|
|
"type": "string"
|
|
},
|
|
"namespaceDefaultResourceQuota": {
|
|
"properties": {
|
|
"limit": {
|
|
"properties": {
|
|
"configMaps": {
|
|
"type": "string"
|
|
},
|
|
"limitsCpu": {
|
|
"type": "string"
|
|
},
|
|
"limitsMemory": {
|
|
"type": "string"
|
|
},
|
|
"persistentVolumeClaims": {
|
|
"type": "string"
|
|
},
|
|
"pods": {
|
|
"type": "string"
|
|
},
|
|
"replicationControllers": {
|
|
"type": "string"
|
|
},
|
|
"requestsCpu": {
|
|
"type": "string"
|
|
},
|
|
"requestsMemory": {
|
|
"type": "string"
|
|
},
|
|
"requestsStorage": {
|
|
"type": "string"
|
|
},
|
|
"secrets": {
|
|
"type": "string"
|
|
},
|
|
"services": {
|
|
"type": "string"
|
|
},
|
|
"servicesLoadBalancers": {
|
|
"type": "string"
|
|
},
|
|
"servicesNodePorts": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"resourceQuota": {
|
|
"properties": {
|
|
"limit": {
|
|
"properties": {
|
|
"configMaps": {
|
|
"type": "string"
|
|
},
|
|
"limitsCpu": {
|
|
"type": "string"
|
|
},
|
|
"limitsMemory": {
|
|
"type": "string"
|
|
},
|
|
"persistentVolumeClaims": {
|
|
"type": "string"
|
|
},
|
|
"pods": {
|
|
"type": "string"
|
|
},
|
|
"replicationControllers": {
|
|
"type": "string"
|
|
},
|
|
"requestsCpu": {
|
|
"type": "string"
|
|
},
|
|
"requestsMemory": {
|
|
"type": "string"
|
|
},
|
|
"requestsStorage": {
|
|
"type": "string"
|
|
},
|
|
"secrets": {
|
|
"type": "string"
|
|
},
|
|
"services": {
|
|
"type": "string"
|
|
},
|
|
"servicesLoadBalancers": {
|
|
"type": "string"
|
|
},
|
|
"servicesNodePorts": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"usedLimit": {
|
|
"properties": {
|
|
"configMaps": {
|
|
"type": "string"
|
|
},
|
|
"limitsCpu": {
|
|
"type": "string"
|
|
},
|
|
"limitsMemory": {
|
|
"type": "string"
|
|
},
|
|
"persistentVolumeClaims": {
|
|
"type": "string"
|
|
},
|
|
"pods": {
|
|
"type": "string"
|
|
},
|
|
"replicationControllers": {
|
|
"type": "string"
|
|
},
|
|
"requestsCpu": {
|
|
"type": "string"
|
|
},
|
|
"requestsMemory": {
|
|
"type": "string"
|
|
},
|
|
"requestsStorage": {
|
|
"type": "string"
|
|
},
|
|
"secrets": {
|
|
"type": "string"
|
|
},
|
|
"services": {
|
|
"type": "string"
|
|
},
|
|
"servicesLoadBalancers": {
|
|
"type": "string"
|
|
},
|
|
"servicesNodePorts": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"clusterName",
|
|
"displayName"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"status": {
|
|
"properties": {
|
|
"backingNamespace": {
|
|
"type": "string"
|
|
},
|
|
"conditions": {
|
|
"items": {
|
|
"properties": {
|
|
"lastTransitionTime": {
|
|
"type": "string"
|
|
},
|
|
"lastUpdateTime": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"status",
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|