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
This commit is contained in:
2026-06-28 16:53:11 +10:00
parent cfca1e5278
commit 06c3c59ea2
565 changed files with 150484 additions and 0 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,914 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"correctDrift": {
"properties": {
"enabled": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"keepFailHistory": {
"type": "boolean"
}
},
"type": "object"
},
"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"
},
"deploymentID": {
"nullable": true,
"type": "string"
},
"helmChartOptions": {
"properties": {
"helmOpInsecureSkipTLSVerify": {
"type": "boolean"
},
"helmOpSecretName": {
"type": "string"
}
},
"type": "object"
},
"ociContents": {
"type": "boolean"
},
"offSchedule": {
"type": "boolean"
},
"options": {
"properties": {
"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"
},
"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"
},
"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"
},
"paused": {
"type": "boolean"
},
"stagedDeploymentID": {
"nullable": true,
"type": "string"
},
"stagedOptions": {
"properties": {
"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"
},
"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"
},
"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"
},
"valuesHash": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"status": {
"properties": {
"appliedDeploymentID": {
"nullable": true,
"type": "string"
},
"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"
},
"nullable": true,
"type": "array"
},
"display": {
"nullable": true,
"properties": {
"deployed": {
"nullable": true,
"type": "string"
},
"monitored": {
"nullable": true,
"type": "string"
},
"state": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"incompleteState": {
"type": "boolean"
},
"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"
},
"nonModified": {
"type": "boolean"
},
"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"
},
"ready": {
"type": "boolean"
},
"release": {
"nullable": true,
"type": "string"
},
"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"
},
"createdAt": {
"format": "date-time",
"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"
},
"syncGeneration": {
"format": "int64",
"nullable": true,
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,93 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"bundleSelector": {
"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"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"namespaceSelector": {
"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"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,290 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"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"
},
"status": {
"properties": {
"clusterCount": {
"type": "integer"
},
"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"
},
"display": {
"properties": {
"readyBundles": {
"nullable": true,
"type": "string"
},
"readyClusters": {
"nullable": true,
"type": "string"
},
"state": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nonReadyClusterCount": {
"type": "integer"
},
"nonReadyClusters": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"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"
},
"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"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,47 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"clientID": {
"nullable": true,
"type": "string"
},
"clientRandom": {
"nullable": true,
"type": "string"
},
"clusterLabels": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
}
},
"type": "object"
},
"status": {
"properties": {
"clusterName": {
"nullable": true,
"type": "string"
},
"granted": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,37 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"ttl": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"status": {
"properties": {
"expires": {
"format": "date-time",
"type": "string"
},
"secretName": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,31 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"content": {
"format": "byte",
"nullable": true,
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"sha256sum": {
"type": "string"
},
"status": {
"properties": {
"referenceCount": {
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,632 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"branch": {
"nullable": true,
"type": "string"
},
"bundles": {
"items": {
"properties": {
"base": {
"type": "string"
},
"options": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"caBundle": {
"format": "byte",
"nullable": true,
"type": "string"
},
"clientSecretName": {
"nullable": true,
"type": "string"
},
"correctDrift": {
"properties": {
"enabled": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"keepFailHistory": {
"type": "boolean"
}
},
"type": "object"
},
"deleteNamespace": {
"type": "boolean"
},
"disablePolling": {
"type": "boolean"
},
"forceSyncGeneration": {
"format": "int64",
"type": "integer"
},
"helmRepoURLRegex": {
"nullable": true,
"type": "string"
},
"helmSecretName": {
"nullable": true,
"type": "string"
},
"helmSecretNameForPaths": {
"nullable": true,
"type": "string"
},
"imageScanCommit": {
"properties": {
"authorEmail": {
"type": "string"
},
"authorName": {
"type": "string"
},
"messageTemplate": {
"type": "string"
}
},
"type": "object"
},
"imageScanInterval": {
"type": "string"
},
"insecureSkipTLSVerify": {
"type": "boolean"
},
"keepResources": {
"type": "boolean"
},
"ociRegistrySecret": {
"type": "string"
},
"paths": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"paused": {
"type": "boolean"
},
"pollingInterval": {
"nullable": true,
"type": "string"
},
"repo": {
"minLength": 1,
"type": "string"
},
"revision": {
"nullable": true,
"type": "string"
},
"serviceAccount": {
"nullable": true,
"type": "string"
},
"targetNamespace": {
"nullable": true,
"type": "string"
},
"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"
},
"name": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"webhookSecret": {
"type": "string"
}
},
"required": [
"repo"
],
"type": "object"
},
"status": {
"properties": {
"commit": {
"type": "string"
},
"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"
},
"gitJobStatus": {
"type": "string"
},
"lastPollingTriggered": {
"format": "date-time",
"type": "string"
},
"lastSyncedImageScanTime": {
"format": "date-time",
"type": "string"
},
"observedGeneration": {
"format": "int64",
"type": "integer"
},
"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"
},
"pollingCommit": {
"type": "string"
},
"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"
},
"updateGeneration": {
"format": "int64",
"type": "integer"
},
"webhookCommit": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,51 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"allowedClientSecretNames": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"allowedRepoPatterns": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"allowedServiceAccounts": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"allowedTargetNamespaces": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"apiVersion": {
"type": "string"
},
"defaultClientSecretName": {
"nullable": true,
"type": "string"
},
"defaultServiceAccount": {
"nullable": true,
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
}
},
"type": "object"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,134 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"gitrepoName": {
"nullable": true,
"type": "string"
},
"image": {
"nullable": true,
"type": "string"
},
"interval": {
"nullable": true,
"type": "string"
},
"policy": {
"properties": {
"alphabetical": {
"nullable": true,
"properties": {
"order": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"semver": {
"nullable": true,
"properties": {
"range": {
"nullable": true,
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"secretRef": {
"nullable": true,
"properties": {
"name": {
"default": "",
"type": "string"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"suspend": {
"type": "boolean"
},
"tagName": {
"nullable": true,
"type": "string"
}
},
"required": [
"image",
"interval"
],
"type": "object"
},
"status": {
"properties": {
"canonicalImageName": {
"type": "string"
},
"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"
},
"lastScanTime": {
"format": "date-time",
"type": "string"
},
"latestDigest": {
"type": "string"
},
"latestImage": {
"type": "string"
},
"latestTag": {
"type": "string"
},
"observedGeneration": {
"format": "int64",
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
@@ -0,0 +1,180 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"duration": {
"type": "string"
},
"location": {
"type": "string"
},
"schedule": {
"type": "string"
},
"targets": {
"properties": {
"clusters": {
"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"
}
},
"type": "object"
}
},
"type": "object"
},
"status": {
"properties": {
"active": {
"type": "boolean"
},
"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"
},
"matchingClusters": {
"items": {
"type": "string"
},
"type": "array"
},
"nextStartTime": {
"format": "date-time",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}