Files
argocd-apps/schemas/fleet.cattle.io/clustergroup_v1alpha1.json
T
unkinben 2bd8fcc0c2
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform 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
- CRD instances (Gateway, TLSRoute, Pooler, etc.) now validated instead of skipped
- CustomResourceDefinition meta-type still skipped (no schema exists upstream)
2026-06-28 17:24:47 +10:00

291 lines
7.9 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"selector": {
"nullable": true,
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
}
},
"type": "object"
},
"status": {
"properties": {
"clusterCount": {
"type": "integer"
},
"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"
},
"display": {
"properties": {
"readyBundles": {
"nullable": true,
"type": "string"
},
"readyClusters": {
"nullable": true,
"type": "string"
},
"state": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nonReadyClusterCount": {
"type": "integer"
},
"nonReadyClusters": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"resourceCounts": {
"properties": {
"desiredReady": {
"type": "integer"
},
"missing": {
"type": "integer"
},
"modified": {
"type": "integer"
},
"notReady": {
"type": "integer"
},
"orphaned": {
"type": "integer"
},
"ready": {
"type": "integer"
},
"unknown": {
"type": "integer"
},
"waitApplied": {
"type": "integer"
}
},
"type": "object"
},
"summary": {
"properties": {
"desiredReady": {
"type": "integer"
},
"errApplied": {
"type": "integer"
},
"modified": {
"type": "integer"
},
"nonReadyResources": {
"items": {
"properties": {
"bundleState": {
"nullable": true,
"type": "string"
},
"message": {
"nullable": true,
"type": "string"
},
"modifiedStatus": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"delete": {
"type": "boolean"
},
"exist": {
"type": "boolean"
},
"kind": {
"nullable": true,
"type": "string"
},
"missing": {
"type": "boolean"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"patch": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"name": {
"nullable": true,
"type": "string"
},
"nonReadyStatus": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"kind": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"summary": {
"properties": {
"error": {
"type": "boolean"
},
"message": {
"items": {
"type": "string"
},
"type": "array"
},
"state": {
"type": "string"
},
"transitioning": {
"type": "boolean"
}
},
"type": "object"
},
"uid": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"notReady": {
"type": "integer"
},
"outOfSync": {
"type": "integer"
},
"pending": {
"type": "integer"
},
"ready": {
"type": "integer"
},
"waitApplied": {
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}