Files
argocd-apps/schemas/crd.projectcalico.org/caliconodestatus_v1.json
T
unkinben 041016fc80
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:21:12 +10:00

219 lines
5.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"classes": {
"items": {
"type": "string"
},
"type": "array"
},
"node": {
"type": "string"
},
"updatePeriodSeconds": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"status": {
"properties": {
"agent": {
"properties": {
"birdV4": {
"properties": {
"lastBootTime": {
"type": "string"
},
"lastReconfigurationTime": {
"type": "string"
},
"routerID": {
"type": "string"
},
"state": {
"type": "string"
},
"version": {
"type": "string"
}
},
"type": "object"
},
"birdV6": {
"properties": {
"lastBootTime": {
"type": "string"
},
"lastReconfigurationTime": {
"type": "string"
},
"routerID": {
"type": "string"
},
"state": {
"type": "string"
},
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"bgp": {
"properties": {
"numberEstablishedV4": {
"type": "integer"
},
"numberEstablishedV6": {
"type": "integer"
},
"numberNotEstablishedV4": {
"type": "integer"
},
"numberNotEstablishedV6": {
"type": "integer"
},
"peersV4": {
"items": {
"properties": {
"peerIP": {
"type": "string"
},
"since": {
"type": "string"
},
"state": {
"type": "string"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"peersV6": {
"items": {
"properties": {
"peerIP": {
"type": "string"
},
"since": {
"type": "string"
},
"state": {
"type": "string"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"required": [
"numberEstablishedV4",
"numberEstablishedV6",
"numberNotEstablishedV4",
"numberNotEstablishedV6"
],
"type": "object"
},
"lastUpdated": {
"format": "date-time",
"nullable": true,
"type": "string"
},
"routes": {
"properties": {
"routesV4": {
"items": {
"properties": {
"destination": {
"type": "string"
},
"gateway": {
"type": "string"
},
"interface": {
"type": "string"
},
"learnedFrom": {
"properties": {
"peerIP": {
"type": "string"
},
"sourceType": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"routesV6": {
"items": {
"properties": {
"destination": {
"type": "string"
},
"gateway": {
"type": "string"
},
"interface": {
"type": "string"
},
"learnedFrom": {
"properties": {
"peerIP": {
"type": "string"
},
"sourceType": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}