Files
argocd-apps/schemas/fleet.cattle.io/helmop_v1alpha1.json
T
unkinben 041016fc80
ci/woodpecker/pr/kubeconform Pipeline failed
ci/woodpecker/pr/pre-commit 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
- Remove all kubeconform skip lists — all resource types now have schemas
2026-06-28 17:21:12 +10:00

1411 lines
41 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"contentsId": {
"nullable": true,
"type": "string"
},
"correctDrift": {
"properties": {
"enabled": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"keepFailHistory": {
"type": "boolean"
}
},
"type": "object"
},
"defaultNamespace": {
"nullable": true,
"type": "string"
},
"deleteCRDResources": {
"type": "boolean"
},
"deleteNamespace": {
"type": "boolean"
},
"dependsOn": {
"items": {
"properties": {
"name": {
"nullable": true,
"type": "string"
},
"selector": {
"nullable": true,
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"diff": {
"nullable": true,
"properties": {
"comparePatches": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"jsonPointers": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"kind": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"operations": {
"items": {
"properties": {
"op": {
"nullable": true,
"type": "string"
},
"path": {
"nullable": true,
"type": "string"
},
"value": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"downstreamResources": {
"items": {
"properties": {
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"forceSyncGeneration": {
"format": "int64",
"type": "integer"
},
"helm": {
"properties": {
"atomic": {
"type": "boolean"
},
"chart": {
"nullable": true,
"type": "string"
},
"disableDNS": {
"type": "boolean"
},
"disableDependencyUpdate": {
"type": "boolean"
},
"disablePreProcess": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"maxHistory": {
"type": "integer"
},
"releaseName": {
"maxLength": 53,
"nullable": true,
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
"type": "string"
},
"repo": {
"nullable": true,
"type": "string"
},
"skipSchemaValidation": {
"type": "boolean"
},
"takeOwnership": {
"type": "boolean"
},
"templateValues": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"timeoutSeconds": {
"type": "integer"
},
"values": {
"nullable": true,
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"valuesFiles": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"valuesFrom": {
"items": {
"properties": {
"configMapKeyRef": {
"nullable": true,
"properties": {
"key": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"secretKeyRef": {
"nullable": true,
"properties": {
"key": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"version": {
"nullable": true,
"type": "string"
},
"waitForJobs": {
"type": "boolean"
}
},
"type": "object"
},
"helmOpOptions": {
"nullable": true,
"properties": {
"helmOpInsecureSkipTLSVerify": {
"type": "boolean"
},
"helmOpSecretName": {
"type": "string"
}
},
"type": "object"
},
"helmSecretName": {
"nullable": true,
"type": "string"
},
"ignore": {
"nullable": true,
"properties": {
"conditions": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"insecureSkipTLSVerify": {
"type": "boolean"
},
"keepResources": {
"type": "boolean"
},
"kustomize": {
"nullable": true,
"properties": {
"dir": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"namespace": {
"nullable": true,
"type": "string"
},
"namespaceAnnotations": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"namespaceLabels": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"paused": {
"type": "boolean"
},
"pollingInterval": {
"nullable": true,
"type": "string"
},
"resources": {
"items": {
"properties": {
"content": {
"nullable": true,
"type": "string"
},
"encoding": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"rolloutStrategy": {
"nullable": true,
"properties": {
"autoPartitionSize": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"nullable": true,
"x-kubernetes-int-or-string": true
},
"maxUnavailable": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"nullable": true,
"x-kubernetes-int-or-string": true
},
"maxUnavailablePartitions": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"nullable": true,
"x-kubernetes-int-or-string": true
},
"partitions": {
"items": {
"properties": {
"clusterGroup": {
"type": "string"
},
"clusterGroupSelector": {
"nullable": true,
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"clusterName": {
"type": "string"
},
"clusterSelector": {
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"maxUnavailable": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-kubernetes-int-or-string": true
},
"name": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"serviceAccount": {
"nullable": true,
"type": "string"
},
"targetRestrictions": {
"items": {
"properties": {
"clusterGroup": {
"nullable": true,
"type": "string"
},
"clusterGroupSelector": {
"nullable": true,
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"clusterName": {
"nullable": true,
"type": "string"
},
"clusterSelector": {
"nullable": true,
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"name": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"targets": {
"items": {
"properties": {
"clusterGroup": {
"nullable": true,
"type": "string"
},
"clusterGroupSelector": {
"nullable": true,
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"clusterName": {
"nullable": true,
"type": "string"
},
"clusterSelector": {
"nullable": true,
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"key",
"operator"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"correctDrift": {
"properties": {
"enabled": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"keepFailHistory": {
"type": "boolean"
}
},
"type": "object"
},
"defaultNamespace": {
"nullable": true,
"type": "string"
},
"deleteCRDResources": {
"type": "boolean"
},
"deleteNamespace": {
"type": "boolean"
},
"diff": {
"nullable": true,
"properties": {
"comparePatches": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"jsonPointers": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"kind": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"operations": {
"items": {
"properties": {
"op": {
"nullable": true,
"type": "string"
},
"path": {
"nullable": true,
"type": "string"
},
"value": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"doNotDeploy": {
"type": "boolean"
},
"downstreamResources": {
"items": {
"properties": {
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"forceSyncGeneration": {
"format": "int64",
"type": "integer"
},
"helm": {
"properties": {
"atomic": {
"type": "boolean"
},
"chart": {
"nullable": true,
"type": "string"
},
"disableDNS": {
"type": "boolean"
},
"disableDependencyUpdate": {
"type": "boolean"
},
"disablePreProcess": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"maxHistory": {
"type": "integer"
},
"releaseName": {
"maxLength": 53,
"nullable": true,
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
"type": "string"
},
"repo": {
"nullable": true,
"type": "string"
},
"skipSchemaValidation": {
"type": "boolean"
},
"takeOwnership": {
"type": "boolean"
},
"templateValues": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"timeoutSeconds": {
"type": "integer"
},
"values": {
"nullable": true,
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"valuesFiles": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"valuesFrom": {
"items": {
"properties": {
"configMapKeyRef": {
"nullable": true,
"properties": {
"key": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"secretKeyRef": {
"nullable": true,
"properties": {
"key": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"version": {
"nullable": true,
"type": "string"
},
"waitForJobs": {
"type": "boolean"
}
},
"type": "object"
},
"ignore": {
"nullable": true,
"properties": {
"conditions": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"keepResources": {
"type": "boolean"
},
"kustomize": {
"nullable": true,
"properties": {
"dir": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"name": {
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"namespaceAnnotations": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"namespaceLabels": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"serviceAccount": {
"nullable": true,
"type": "string"
},
"yaml": {
"nullable": true,
"properties": {
"overlays": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
},
"type": "array"
},
"valuesHash": {
"type": "string"
},
"yaml": {
"nullable": true,
"properties": {
"overlays": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
},
"status": {
"properties": {
"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"
},
"desiredReadyClusters": {
"type": "integer"
},
"display": {
"properties": {
"error": {
"type": "boolean"
},
"message": {
"type": "string"
},
"readyBundleDeployments": {
"type": "string"
},
"state": {
"type": "string"
}
},
"type": "object"
},
"lastPollingTriggered": {
"format": "date-time",
"type": "string"
},
"perClusterResourceCounts": {
"additionalProperties": {
"properties": {
"desiredReady": {
"type": "integer"
},
"missing": {
"type": "integer"
},
"modified": {
"type": "integer"
},
"notReady": {
"type": "integer"
},
"orphaned": {
"type": "integer"
},
"ready": {
"type": "integer"
},
"unknown": {
"type": "integer"
},
"waitApplied": {
"type": "integer"
}
},
"type": "object"
},
"type": "object"
},
"readyClusters": {
"type": "integer"
},
"resourceCounts": {
"properties": {
"desiredReady": {
"type": "integer"
},
"missing": {
"type": "integer"
},
"modified": {
"type": "integer"
},
"notReady": {
"type": "integer"
},
"orphaned": {
"type": "integer"
},
"ready": {
"type": "integer"
},
"unknown": {
"type": "integer"
},
"waitApplied": {
"type": "integer"
}
},
"type": "object"
},
"resources": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"error": {
"type": "boolean"
},
"id": {
"nullable": true,
"type": "string"
},
"incompleteState": {
"type": "boolean"
},
"kind": {
"nullable": true,
"type": "string"
},
"message": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"perClusterState": {
"nullable": true,
"properties": {
"missing": {
"items": {
"type": "string"
},
"type": "array"
},
"modified": {
"items": {
"type": "string"
},
"type": "array"
},
"notReady": {
"items": {
"type": "string"
},
"type": "array"
},
"orphaned": {
"items": {
"type": "string"
},
"type": "array"
},
"pending": {
"items": {
"type": "string"
},
"type": "array"
},
"ready": {
"items": {
"type": "string"
},
"type": "array"
},
"unknown": {
"items": {
"type": "string"
},
"type": "array"
},
"waitApplied": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"state": {
"type": "string"
},
"transitioning": {
"type": "boolean"
},
"type": {
"type": "string"
}
},
"required": [
"perClusterState"
],
"type": "object"
},
"type": "array"
},
"summary": {
"properties": {
"desiredReady": {
"type": "integer"
},
"errApplied": {
"type": "integer"
},
"modified": {
"type": "integer"
},
"nonReadyResources": {
"items": {
"properties": {
"bundleState": {
"nullable": true,
"type": "string"
},
"message": {
"nullable": true,
"type": "string"
},
"modifiedStatus": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"delete": {
"type": "boolean"
},
"exist": {
"type": "boolean"
},
"kind": {
"nullable": true,
"type": "string"
},
"missing": {
"type": "boolean"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"patch": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"name": {
"nullable": true,
"type": "string"
},
"nonReadyStatus": {
"items": {
"properties": {
"apiVersion": {
"nullable": true,
"type": "string"
},
"kind": {
"nullable": true,
"type": "string"
},
"name": {
"nullable": true,
"type": "string"
},
"namespace": {
"nullable": true,
"type": "string"
},
"summary": {
"properties": {
"error": {
"type": "boolean"
},
"message": {
"items": {
"type": "string"
},
"type": "array"
},
"state": {
"type": "string"
},
"transitioning": {
"type": "boolean"
}
},
"type": "object"
},
"uid": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"notReady": {
"type": "integer"
},
"outOfSync": {
"type": "integer"
},
"pending": {
"type": "integer"
},
"ready": {
"type": "integer"
},
"waitApplied": {
"type": "integer"
}
},
"type": "object"
},
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}