Files
argocd-apps/schemas/management.cattle.io/project_v3.json
T
unkinben 817bde2289
ci/woodpecker/pr/kubeconform Pipeline was canceled
ci/woodpecker/pr/pre-commit Pipeline was canceled
Add JSON schema generation for kubeconform CRD validation
- ci/generate-schemas.sh generates schemas from CRD manifests and K8s swagger
- Sources: ArgoCD v3.3.2, Gateway API v1.5.1, Kubernetes v1.33.7
- Optionally fetches live cluster CRDs via kubectl when available
- Generated schemas committed to schemas/ for CI use
- Run `make schemas` to regenerate after CRD version bumps
- validate-apps.sh and validate-clusters.sh check local schemas first
- Remove CustomResourceDefinition from kubeconform skip list
2026-06-28 17:17:56 +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"
}