Files
argocd-apps/schemas/catalog.cattle.io/app_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

223 lines
5.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"chart": {
"nullable": true,
"properties": {
"metadata": {
"nullable": true,
"properties": {
"annotations": {
"additionalProperties": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "object"
},
"apiVersion": {
"nullable": true,
"type": "string"
},
"appVersion": {
"nullable": true,
"type": "string"
},
"condition": {
"nullable": true,
"type": "string"
},
"deprecated": {
"type": "boolean"
},
"home": {
"nullable": true,
"type": "string"
},
"icon": {
"nullable": true,
"type": "string"
},
"keywords": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"kubeVersion": {
"nullable": true,
"type": "string"
},
"maintainers": {
"items": {
"properties": {
"email": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"url": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"name": {
"nullable": true,
"type": "string"
},
"sources": {
"items": {
"nullable": true,
"type": "string"
},
"nullable": true,
"type": "array"
},
"tags": {
"nullable": true,
"type": "string"
},
"type": {
"nullable": true,
"type": "string"
},
"version": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"values": {
"nullable": true,
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
}
},
"type": "object"
},
"helmVersion": {
"type": "integer"
},
"info": {
"nullable": true,
"properties": {
"deleted": {
"nullable": true,
"type": "string"
},
"firstDeployed": {
"nullable": true,
"type": "string"
},
"lastDeployed": {
"nullable": true,
"type": "string"
},
"notes": {
"nullable": true,
"type": "string"
},
"readme": {
"nullable": true,
"type": "string"
},
"status": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"resources": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"kind": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"values": {
"nullable": true,
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"version": {
"type": "integer"
}
},
"type": "object"
},
"status": {
"properties": {
"observedGeneration": {
"type": "integer"
},
"summary": {
"properties": {
"error": {
"type": "boolean"
},
"state": {
"nullable": true,
"type": "string"
},
"transitioning": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}