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

- 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 CustomResourceDefinition from kubeconform skip list
This commit is contained in:
2026-06-28 16:53:11 +10:00
parent cfca1e5278
commit 817bde2289
565 changed files with 150486 additions and 2 deletions
@@ -0,0 +1,177 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"acceleratedNetworking": {
"default": false,
"type": "boolean"
},
"apiVersion": {
"type": "string"
},
"availabilitySet": {
"default": "docker-machine",
"nullable": true,
"type": "string"
},
"availabilityZone": {
"default": "",
"nullable": true,
"type": "string"
},
"clientId": {
"default": "",
"nullable": true,
"type": "string"
},
"clientSecret": {
"default": "",
"nullable": true,
"type": "string"
},
"customData": {
"default": "",
"nullable": true,
"type": "string"
},
"diskSize": {
"default": "30",
"nullable": true,
"type": "string"
},
"dns": {
"default": "",
"nullable": true,
"type": "string"
},
"dockerPort": {
"default": "2376",
"nullable": true,
"type": "string"
},
"enablePublicIpStandardSku": {
"default": false,
"type": "boolean"
},
"environment": {
"default": "AzurePublicCloud",
"nullable": true,
"type": "string"
},
"faultDomainCount": {
"default": "3",
"nullable": true,
"type": "string"
},
"image": {
"default": "canonical:ubuntu-24_04-lts:server-gen1:latest",
"nullable": true,
"type": "string"
},
"kind": {
"type": "string"
},
"location": {
"default": "westus",
"nullable": true,
"type": "string"
},
"managedDisks": {
"default": false,
"type": "boolean"
},
"metadata": {
"type": "object"
},
"noPublicIp": {
"default": false,
"type": "boolean"
},
"nsg": {
"default": "",
"nullable": true,
"type": "string"
},
"openPort": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"plan": {
"default": "",
"nullable": true,
"type": "string"
},
"privateIpAddress": {
"default": "",
"nullable": true,
"type": "string"
},
"resourceGroup": {
"default": "docker-machine",
"nullable": true,
"type": "string"
},
"size": {
"default": "Standard_D2_v2",
"nullable": true,
"type": "string"
},
"sshUser": {
"default": "docker-user",
"nullable": true,
"type": "string"
},
"staticPublicIp": {
"default": false,
"type": "boolean"
},
"storageType": {
"default": "Standard_LRS",
"nullable": true,
"type": "string"
},
"subnet": {
"default": "docker-machine",
"nullable": true,
"type": "string"
},
"subnetPrefix": {
"default": "192.168.0.0/16",
"nullable": true,
"type": "string"
},
"subscriptionId": {
"default": "",
"nullable": true,
"type": "string"
},
"tags": {
"default": "",
"nullable": true,
"type": "string"
},
"tenantId": {
"default": "",
"nullable": true,
"type": "string"
},
"updateDomainCount": {
"default": "5",
"nullable": true,
"type": "string"
},
"usePrivateIp": {
"default": false,
"type": "boolean"
},
"vnet": {
"default": "docker-machine-vnet",
"nullable": true,
"type": "string"
}
},
"type": "object"
}