Files
argocd-apps/schemas/rke-machine-config.cattle.io/harvesterconfig_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

166 lines
3.1 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"cloudConfig": {
"default": "",
"nullable": true,
"type": "string"
},
"clusterId": {
"default": "",
"nullable": true,
"type": "string"
},
"clusterName": {
"default": "",
"nullable": true,
"type": "string"
},
"clusterType": {
"default": "",
"nullable": true,
"type": "string"
},
"cpuCount": {
"default": "2",
"nullable": true,
"type": "string"
},
"cpuPinning": {
"default": false,
"type": "boolean"
},
"diskBus": {
"default": "",
"nullable": true,
"type": "string"
},
"diskInfo": {
"default": "",
"nullable": true,
"type": "string"
},
"diskSize": {
"default": "0",
"nullable": true,
"type": "string"
},
"enableEfi": {
"default": false,
"type": "boolean"
},
"enableSecureBoot": {
"default": false,
"type": "boolean"
},
"enableTpm": {
"default": false,
"type": "boolean"
},
"imageName": {
"default": "",
"nullable": true,
"type": "string"
},
"isolateEmulatorThread": {
"default": false,
"type": "boolean"
},
"keyPairName": {
"default": "",
"nullable": true,
"type": "string"
},
"kind": {
"type": "string"
},
"kubeconfigContent": {
"default": "",
"nullable": true,
"type": "string"
},
"memorySize": {
"default": "4",
"nullable": true,
"type": "string"
},
"metadata": {
"type": "object"
},
"networkData": {
"default": "",
"nullable": true,
"type": "string"
},
"networkInfo": {
"default": "",
"nullable": true,
"type": "string"
},
"networkModel": {
"default": "",
"nullable": true,
"type": "string"
},
"networkName": {
"default": "",
"nullable": true,
"type": "string"
},
"networkType": {
"default": "",
"nullable": true,
"type": "string"
},
"reservedMemorySize": {
"default": "-1",
"nullable": true,
"type": "string"
},
"sshPassword": {
"default": "",
"nullable": true,
"type": "string"
},
"sshPort": {
"default": "22",
"nullable": true,
"type": "string"
},
"sshPrivateKeyPath": {
"default": "",
"nullable": true,
"type": "string"
},
"sshUser": {
"default": "root",
"nullable": true,
"type": "string"
},
"userData": {
"default": "",
"nullable": true,
"type": "string"
},
"vgpuInfo": {
"default": "",
"nullable": true,
"type": "string"
},
"vmAffinity": {
"default": "",
"nullable": true,
"type": "string"
},
"vmNamespace": {
"default": "default",
"nullable": true,
"type": "string"
}
},
"type": "object"
}