Files
argocd-apps/schemas/rke-machine.cattle.io/harvestermachinetemplate_v1.json
T
unkinben 06c3c59ea2
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 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
2026-06-28 17:03:21 +10:00

201 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": {
"nullable": true,
"type": "string"
},
"template": {
"properties": {
"spec": {
"properties": {
"cloudConfig": {
"nullable": true,
"type": "string"
},
"clusterId": {
"nullable": true,
"type": "string"
},
"clusterName": {
"nullable": true,
"type": "string"
},
"clusterType": {
"nullable": true,
"type": "string"
},
"common": {
"properties": {
"cloudCredentialSecretName": {
"maxLength": 317,
"nullable": true,
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"taints": {
"items": {
"properties": {
"effect": {
"type": "string"
},
"key": {
"type": "string"
},
"timeAdded": {
"format": "date-time",
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"effect",
"key"
],
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"cpuCount": {
"nullable": true,
"type": "string"
},
"cpuPinning": {
"type": "boolean"
},
"diskBus": {
"nullable": true,
"type": "string"
},
"diskInfo": {
"nullable": true,
"type": "string"
},
"diskSize": {
"nullable": true,
"type": "string"
},
"enableEfi": {
"type": "boolean"
},
"enableSecureBoot": {
"type": "boolean"
},
"enableTpm": {
"type": "boolean"
},
"imageName": {
"nullable": true,
"type": "string"
},
"isolateEmulatorThread": {
"type": "boolean"
},
"keyPairName": {
"nullable": true,
"type": "string"
},
"kubeconfigContent": {
"nullable": true,
"type": "string"
},
"memorySize": {
"nullable": true,
"type": "string"
},
"networkData": {
"nullable": true,
"type": "string"
},
"networkInfo": {
"nullable": true,
"type": "string"
},
"networkModel": {
"nullable": true,
"type": "string"
},
"networkName": {
"nullable": true,
"type": "string"
},
"networkType": {
"nullable": true,
"type": "string"
},
"providerID": {
"nullable": true,
"type": "string"
},
"reservedMemorySize": {
"nullable": true,
"type": "string"
},
"sshPassword": {
"nullable": true,
"type": "string"
},
"sshPort": {
"nullable": true,
"type": "string"
},
"sshPrivateKeyPath": {
"nullable": true,
"type": "string"
},
"sshUser": {
"nullable": true,
"type": "string"
},
"userData": {
"nullable": true,
"type": "string"
},
"vgpuInfo": {
"nullable": true,
"type": "string"
},
"vmAffinity": {
"nullable": true,
"type": "string"
},
"vmNamespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}