Files
argocd-apps/schemas/cluster.x-k8s.io/machinedeployment_v1beta1.json
T
unkinben 423287ff3f
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:22:47 +10:00

471 lines
13 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"clusterName": {
"maxLength": 63,
"minLength": 1,
"type": "string"
},
"machineNamingStrategy": {
"properties": {
"template": {
"maxLength": 256,
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"minReadySeconds": {
"format": "int32",
"type": "integer"
},
"paused": {
"type": "boolean"
},
"progressDeadlineSeconds": {
"format": "int32",
"type": "integer"
},
"replicas": {
"format": "int32",
"type": "integer"
},
"revisionHistoryLimit": {
"format": "int32",
"type": "integer"
},
"rolloutAfter": {
"format": "date-time",
"type": "string"
},
"selector": {
"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"
},
"strategy": {
"properties": {
"remediation": {
"properties": {
"maxInFlight": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-kubernetes-int-or-string": true
}
},
"type": "object"
},
"rollingUpdate": {
"properties": {
"deletePolicy": {
"enum": [
"Random",
"Newest",
"Oldest"
],
"type": "string"
},
"maxSurge": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-kubernetes-int-or-string": true
},
"maxUnavailable": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"x-kubernetes-int-or-string": true
}
},
"type": "object"
},
"type": {
"enum": [
"RollingUpdate",
"OnDelete"
],
"type": "string"
}
},
"type": "object"
},
"template": {
"properties": {
"metadata": {
"properties": {
"annotations": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object"
},
"spec": {
"properties": {
"bootstrap": {
"properties": {
"configRef": {
"properties": {
"apiVersion": {
"type": "string"
},
"fieldPath": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"uid": {
"type": "string"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"dataSecretName": {
"maxLength": 253,
"minLength": 0,
"type": "string"
}
},
"type": "object"
},
"clusterName": {
"maxLength": 63,
"minLength": 1,
"type": "string"
},
"failureDomain": {
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"infrastructureRef": {
"properties": {
"apiVersion": {
"type": "string"
},
"fieldPath": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"resourceVersion": {
"type": "string"
},
"uid": {
"type": "string"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"nodeDeletionTimeout": {
"type": "string"
},
"nodeDrainTimeout": {
"type": "string"
},
"nodeVolumeDetachTimeout": {
"type": "string"
},
"providerID": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"readinessGates": {
"items": {
"properties": {
"conditionType": {
"maxLength": 316,
"minLength": 1,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
},
"polarity": {
"enum": [
"Positive",
"Negative"
],
"type": "string"
}
},
"required": [
"conditionType"
],
"type": "object"
},
"maxItems": 32,
"type": "array",
"x-kubernetes-list-map-keys": [
"conditionType"
],
"x-kubernetes-list-type": "map"
},
"version": {
"maxLength": 256,
"minLength": 1,
"type": "string"
}
},
"required": [
"bootstrap",
"clusterName",
"infrastructureRef"
],
"type": "object"
}
},
"type": "object"
}
},
"required": [
"clusterName",
"selector",
"template"
],
"type": "object"
},
"status": {
"properties": {
"availableReplicas": {
"format": "int32",
"type": "integer"
},
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 10240,
"minLength": 1,
"type": "string"
},
"reason": {
"maxLength": 256,
"minLength": 1,
"type": "string"
},
"severity": {
"maxLength": 32,
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"maxLength": 256,
"minLength": 1,
"type": "string"
}
},
"required": [
"lastTransitionTime",
"status",
"type"
],
"type": "object"
},
"type": "array"
},
"observedGeneration": {
"format": "int64",
"type": "integer"
},
"phase": {
"enum": [
"ScalingUp",
"ScalingDown",
"Running",
"Failed",
"Unknown"
],
"type": "string"
},
"readyReplicas": {
"format": "int32",
"type": "integer"
},
"replicas": {
"format": "int32",
"type": "integer"
},
"selector": {
"maxLength": 4096,
"minLength": 1,
"type": "string"
},
"unavailableReplicas": {
"format": "int32",
"type": "integer"
},
"updatedReplicas": {
"format": "int32",
"type": "integer"
},
"v1beta2": {
"properties": {
"availableReplicas": {
"format": "int32",
"type": "integer"
},
"conditions": {
"items": {
"properties": {
"lastTransitionTime": {
"format": "date-time",
"type": "string"
},
"message": {
"maxLength": 32768,
"type": "string"
},
"observedGeneration": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"reason": {
"maxLength": 1024,
"minLength": 1,
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
"type": "string"
},
"status": {
"enum": [
"True",
"False",
"Unknown"
],
"type": "string"
},
"type": {
"maxLength": 316,
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
"type": "string"
}
},
"required": [
"lastTransitionTime",
"message",
"reason",
"status",
"type"
],
"type": "object"
},
"maxItems": 32,
"type": "array",
"x-kubernetes-list-map-keys": [
"type"
],
"x-kubernetes-list-type": "map"
},
"readyReplicas": {
"format": "int32",
"type": "integer"
},
"upToDateReplicas": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}