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
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"type": "string"
|
||||
},
|
||||
"authorizedUsers": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"createPrivateIp": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"dockerPort": {
|
||||
"default": "2376",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"default": "linode/ubuntu18.04",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"instanceType": {
|
||||
"default": "g6-standard-4",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object"
|
||||
},
|
||||
"region": {
|
||||
"default": "us-east",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"rootPass": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"sshPort": {
|
||||
"default": "22",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"sshUser": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"stackscript": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"stackscriptData": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"swapSize": {
|
||||
"default": "512",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
},
|
||||
"uaPrefix": {
|
||||
"default": "",
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
Reference in New Issue
Block a user