Files
argocd-apps/schemas/cluster.x-k8s.io/machine_v1alpha4.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

258 lines
5.9 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"bootstrap": {
"properties": {
"configRef": {
"properties": {
"apiVersion": {
"type": "string"
},
"fieldPath": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"uid": {
"type": "string"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"dataSecretName": {
"type": "string"
}
},
"type": "object"
},
"clusterName": {
"minLength": 1,
"type": "string"
},
"failureDomain": {
"type": "string"
},
"infrastructureRef": {
"properties": {
"apiVersion": {
"type": "string"
},
"fieldPath": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"uid": {
"type": "string"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"nodeDrainTimeout": {
"type": "string"
},
"providerID": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"bootstrap",
"clusterName",
"infrastructureRef"
],
"type": "object"
},
"status": {
"properties": {
"addresses": {
"items": {
"properties": {
"address": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"address",
"type"
],
"type": "object"
},
"type": "array"
},
"bootstrapReady": {
"type": "boolean"
},
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"severity": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"failureMessage": {
"type": "string"
},
"failureReason": {
"type": "string"
},
"infrastructureReady": {
"type": "boolean"
},
"lastUpdated": {
"format": "date-time",
"type": "string"
},
"nodeInfo": {
"properties": {
"architecture": {
"type": "string"
},
"bootID": {
"type": "string"
},
"containerRuntimeVersion": {
"type": "string"
},
"kernelVersion": {
"type": "string"
},
"kubeProxyVersion": {
"type": "string"
},
"kubeletVersion": {
"type": "string"
},
"machineID": {
"type": "string"
},
"operatingSystem": {
"type": "string"
},
"osImage": {
"type": "string"
},
"systemUUID": {
"type": "string"
}
},
"required": [
"architecture",
"bootID",
"containerRuntimeVersion",
"kernelVersion",
"kubeProxyVersion",
"kubeletVersion",
"machineID",
"operatingSystem",
"osImage",
"systemUUID"
],
"type": "object"
},
"nodeRef": {
"properties": {
"apiVersion": {
"type": "string"
},
"fieldPath": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"uid": {
"type": "string"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"observedGeneration": {
"format": "int64",
"type": "integer"
},
"phase": {
"type": "string"
},
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}