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

303 lines
6.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"boot2dockerUrl": {
"nullable": true,
"type": "string"
},
"cfgparam": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"cloneFrom": {
"nullable": true,
"type": "string"
},
"cloudConfig": {
"nullable": true,
"type": "string"
},
"cloudinit": {
"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"
},
"contentLibrary": {
"nullable": true,
"type": "string"
},
"cpuCount": {
"nullable": true,
"type": "string"
},
"creationType": {
"nullable": true,
"type": "string"
},
"customAttribute": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"datacenter": {
"nullable": true,
"type": "string"
},
"datastore": {
"nullable": true,
"type": "string"
},
"datastoreCluster": {
"nullable": true,
"type": "string"
},
"diskSize": {
"nullable": true,
"type": "string"
},
"folder": {
"nullable": true,
"type": "string"
},
"gracefulShutdownTimeout": {
"nullable": true,
"type": "string"
},
"hostsystem": {
"nullable": true,
"type": "string"
},
"memorySize": {
"nullable": true,
"type": "string"
},
"network": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"os": {
"nullable": true,
"type": "string"
},
"password": {
"nullable": true,
"type": "string"
},
"pool": {
"nullable": true,
"type": "string"
},
"providerID": {
"nullable": true,
"type": "string"
},
"sshPassword": {
"nullable": true,
"type": "string"
},
"sshPort": {
"nullable": true,
"type": "string"
},
"sshUser": {
"nullable": true,
"type": "string"
},
"sshUserGroup": {
"nullable": true,
"type": "string"
},
"tag": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"username": {
"nullable": true,
"type": "string"
},
"vappIpallocationpolicy": {
"nullable": true,
"type": "string"
},
"vappIpprotocol": {
"nullable": true,
"type": "string"
},
"vappProperty": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"vappTransport": {
"nullable": true,
"type": "string"
},
"vcenter": {
"nullable": true,
"type": "string"
},
"vcenterPort": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"status": {
"properties": {
"addresses": {
"items": {
"properties": {
"address": {
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"type": {
"enum": [
"Hostname",
"ExternalIP",
"InternalIP",
"ExternalDNS",
"InternalDNS"
],
"type": "string"
}
},
"required": [
"address",
"type"
],
"type": "object"
},
"type": "array"
},
"cloudCredentialSecretName": {
"type": "string"
},
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"type": "string"
},
"lastUpdateTime": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"driverHash": {
"type": "string"
},
"driverUrl": {
"type": "string"
},
"failureMessage": {
"type": "string"
},
"failureReason": {
"type": "string"
},
"jobName": {
"type": "string"
},
"ready": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}