784c3b5de1
## Summary - New `ci/generate-schemas.sh` script that generates JSON schemas from three sources: 1. Live cluster CRDs via `kubectl get crds` 2. Offline CRD manifests (ArgoCD v3.3.2, Gateway API v1.5.1) 3. Kubernetes v1.33.7 swagger spec for native types - Schemas follow Datree catalog convention (`<group>/<Kind>_<version>.json`) - `validate-apps.sh` and `validate-clusters.sh` check local schemas first, falling back to remote - Fixes TLSRoute (and other CRD) schema validation failures in kubeconform ## Sources - ArgoCD: `artifactapi.../argoproj/argo-cd/refs/tags/v3.3.2/manifests/ha/install.yaml` - Gateway API: `artifactapi.../kubernetes-sigs/gateway-api/releases/download/v1.5.1/standard-install.yaml` - Kubernetes: `artifactapi.../kubernetes/kubernetes/refs/tags/v1.33.7/api/openapi-spec/swagger.json` Reviewed-on: #212 Co-authored-by: Ben Vincent <ben@unkin.net> Co-committed-by: Ben Vincent <ben@unkin.net>
219 lines
5.5 KiB
JSON
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"
|
|
}
|