Files
argocd-apps/schemas/management.cattle.io/project_v3.json
T
unkinben 423287ff3f
ci/woodpecker/pr/kubeconform Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful
Add JSON schema generation for kubeconform CRD validation
- 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
- Remove all kubeconform skip lists — all resource types now have schemas
2026-06-28 17:22:47 +10:00

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"
}