Add JSON schema generation for kubeconform CRD validation
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful

- 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
- Remove all kubeconform skip lists — all resource types now have schemas
This commit is contained in:
2026-06-28 16:53:11 +10:00
parent cfca1e5278
commit d497db04be
565 changed files with 150486 additions and 2 deletions
@@ -0,0 +1,209 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"accessKey": {
"default": "",
"nullable": true,
"type": "string"
},
"ami": {
"default": "",
"nullable": true,
"type": "string"
},
"apiVersion": {
"type": "string"
},
"blockDurationMinutes": {
"default": "0",
"nullable": true,
"type": "string"
},
"deviceName": {
"default": "",
"nullable": true,
"type": "string"
},
"enablePrimaryIpv6": {
"default": false,
"type": "boolean"
},
"encryptEbsVolume": {
"default": false,
"type": "boolean"
},
"endpoint": {
"default": "",
"nullable": true,
"type": "string"
},
"httpEndpoint": {
"default": "",
"nullable": true,
"type": "string"
},
"httpProtocolIpv6": {
"default": "disabled",
"nullable": true,
"type": "string"
},
"httpTokens": {
"default": "",
"nullable": true,
"type": "string"
},
"iamInstanceProfile": {
"default": "",
"nullable": true,
"type": "string"
},
"insecureTransport": {
"default": false,
"type": "boolean"
},
"instanceType": {
"default": "t2.micro",
"nullable": true,
"type": "string"
},
"ipv6AddressCount": {
"default": "0",
"nullable": true,
"type": "string"
},
"ipv6AddressOnly": {
"default": false,
"type": "boolean"
},
"keypairName": {
"default": "",
"nullable": true,
"type": "string"
},
"kind": {
"type": "string"
},
"kmsKey": {
"default": "",
"nullable": true,
"type": "string"
},
"metadata": {
"type": "object"
},
"monitoring": {
"default": false,
"type": "boolean"
},
"openPort": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"privateAddressOnly": {
"default": false,
"type": "boolean"
},
"region": {
"default": "us-east-1",
"nullable": true,
"type": "string"
},
"requestSpotInstance": {
"default": false,
"type": "boolean"
},
"retries": {
"default": "5",
"nullable": true,
"type": "string"
},
"rootSize": {
"default": "16",
"nullable": true,
"type": "string"
},
"secretKey": {
"default": "",
"nullable": true,
"type": "string"
},
"securityGroup": {
"default": [
"rancher-nodes"
],
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"securityGroupReadonly": {
"default": false,
"type": "boolean"
},
"sessionToken": {
"default": "",
"nullable": true,
"type": "string"
},
"spotPrice": {
"default": "0.50",
"nullable": true,
"type": "string"
},
"sshKeyContents": {
"default": "",
"nullable": true,
"type": "string"
},
"sshUser": {
"default": "ubuntu",
"nullable": true,
"type": "string"
},
"subnetId": {
"default": "",
"nullable": true,
"type": "string"
},
"tags": {
"default": "",
"nullable": true,
"type": "string"
},
"useEbsOptimizedInstance": {
"default": false,
"type": "boolean"
},
"usePrivateAddress": {
"default": false,
"type": "boolean"
},
"userdata": {
"default": "",
"nullable": true,
"type": "string"
},
"volumeType": {
"default": "gp2",
"nullable": true,
"type": "string"
},
"vpcId": {
"default": "",
"nullable": true,
"type": "string"
},
"zone": {
"default": "a",
"nullable": true,
"type": "string"
}
},
"type": "object"
}