Files
unkinben 784c3b5de1 Add JSON schema generation for kubeconform CRD validation (#212)
## Summary
- New `ci/generate-schemas.sh` script that generates JSON schemas from three sources:
  1. Live cluster CRDs via `kubectl get crds`
  2. Offline CRD manifests (ArgoCD v3.3.2, Gateway API v1.5.1)
  3. Kubernetes v1.33.7 swagger spec for native types
- Schemas follow Datree catalog convention (`<group>/<Kind>_<version>.json`)
- `validate-apps.sh` and `validate-clusters.sh` check local schemas first, falling back to remote
- Fixes TLSRoute (and other CRD) schema validation failures in kubeconform

## Sources
- ArgoCD: `artifactapi.../argoproj/argo-cd/refs/tags/v3.3.2/manifests/ha/install.yaml`
- Gateway API: `artifactapi.../kubernetes-sigs/gateway-api/releases/download/v1.5.1/standard-install.yaml`
- Kubernetes: `artifactapi.../kubernetes/kubernetes/refs/tags/v1.33.7/api/openapi-spec/swagger.json`

Reviewed-on: #212
Co-authored-by: Ben Vincent <ben@unkin.net>
Co-committed-by: Ben Vincent <ben@unkin.net>
2026-06-28 17:26:08 +10:00

2496 lines
96 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"properties": {
"agentEnvVars": {
"items": {
"properties": {
"name": {
"type": "string"
},
"value": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"cloudCredentialSecretName": {
"maxLength": 317,
"nullable": true,
"type": "string"
},
"clusterAPIConfig": {
"nullable": true,
"properties": {
"clusterName": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"clusterAgentDeploymentCustomization": {
"nullable": true,
"properties": {
"appendTolerations": {
"items": {
"properties": {
"effect": {
"type": "string"
},
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"tolerationSeconds": {
"format": "int64",
"type": "integer"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"overrideAffinity": {
"nullable": true,
"properties": {
"nodeAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"preference": {
"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"
},
"matchFields": {
"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"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"preference",
"weight"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"properties": {
"nodeSelectorTerms": {
"items": {
"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"
},
"matchFields": {
"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"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"nodeSelectorTerms"
],
"type": "object",
"x-kubernetes-map-type": "atomic"
}
},
"type": "object"
},
"podAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"podAffinityTerm": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"podAffinityTerm",
"weight"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"type": "object"
},
"podAntiAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"podAffinityTerm": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"podAffinityTerm",
"weight"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"type": "object"
}
},
"type": "object"
},
"overrideResourceRequirements": {
"nullable": true,
"properties": {
"claims": {
"items": {
"properties": {
"name": {
"type": "string"
},
"request": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map"
},
"limits": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"type": "object"
},
"requests": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"type": "object"
}
},
"type": "object"
},
"schedulingCustomization": {
"nullable": true,
"properties": {
"podDisruptionBudget": {
"nullable": true,
"properties": {
"maxUnavailable": {
"maxLength": 10,
"nullable": true,
"pattern": "^((([1-9]|[1-9][0-9]|100)%)|([1-9][0-9]*|0)|)$",
"type": "string"
},
"minAvailable": {
"maxLength": 10,
"nullable": true,
"pattern": "^((([1-9]|[1-9][0-9]|100)%)|([1-9][0-9]*|0)|)$",
"type": "string"
}
},
"type": "object"
},
"priorityClass": {
"nullable": true,
"properties": {
"preemptionPolicy": {
"nullable": true,
"type": "string"
},
"value": {
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"defaultClusterRoleForProjectMembers": {
"nullable": true,
"type": "string"
},
"defaultPodSecurityAdmissionConfigurationTemplateName": {
"nullable": true,
"type": "string"
},
"enableNetworkPolicy": {
"nullable": true,
"type": "boolean"
},
"fleetAgentDeploymentCustomization": {
"nullable": true,
"properties": {
"appendTolerations": {
"items": {
"properties": {
"effect": {
"type": "string"
},
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"tolerationSeconds": {
"format": "int64",
"type": "integer"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"overrideAffinity": {
"nullable": true,
"properties": {
"nodeAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"preference": {
"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"
},
"matchFields": {
"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"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"preference",
"weight"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"properties": {
"nodeSelectorTerms": {
"items": {
"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"
},
"matchFields": {
"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"
}
},
"type": "object",
"x-kubernetes-map-type": "atomic"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"required": [
"nodeSelectorTerms"
],
"type": "object",
"x-kubernetes-map-type": "atomic"
}
},
"type": "object"
},
"podAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"podAffinityTerm": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"podAffinityTerm",
"weight"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"type": "object"
},
"podAntiAffinity": {
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"podAffinityTerm": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"weight": {
"format": "int32",
"type": "integer"
}
},
"required": [
"podAffinityTerm",
"weight"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"items": {
"properties": {
"labelSelector": {
"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"
},
"matchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"mismatchLabelKeys": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"namespaceSelector": {
"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"
},
"namespaces": {
"items": {
"type": "string"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
},
"topologyKey": {
"type": "string"
}
},
"required": [
"topologyKey"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-type": "atomic"
}
},
"type": "object"
}
},
"type": "object"
},
"overrideResourceRequirements": {
"nullable": true,
"properties": {
"claims": {
"items": {
"properties": {
"name": {
"type": "string"
},
"request": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array",
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map"
},
"limits": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"type": "object"
},
"requests": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
"x-kubernetes-int-or-string": true
},
"type": "object"
}
},
"type": "object"
},
"schedulingCustomization": {
"nullable": true,
"properties": {
"podDisruptionBudget": {
"nullable": true,
"properties": {
"maxUnavailable": {
"maxLength": 10,
"nullable": true,
"pattern": "^((([1-9]|[1-9][0-9]|100)%)|([1-9][0-9]*|0)|)$",
"type": "string"
},
"minAvailable": {
"maxLength": 10,
"nullable": true,
"pattern": "^((([1-9]|[1-9][0-9]|100)%)|([1-9][0-9]*|0)|)$",
"type": "string"
}
},
"type": "object"
},
"priorityClass": {
"nullable": true,
"properties": {
"preemptionPolicy": {
"nullable": true,
"type": "string"
},
"value": {
"maximum": 1000000000,
"minimum": -1000000000,
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"kubernetesVersion": {
"nullable": true,
"type": "string"
},
"localClusterAuthEndpoint": {
"properties": {
"caCerts": {
"nullable": true,
"type": "string"
},
"enabled": {
"type": "boolean"
},
"fqdn": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"redeploySystemAgentGeneration": {
"format": "int64",
"type": "integer"
},
"rkeConfig": {
"nullable": true,
"properties": {
"additionalManifest": {
"nullable": true,
"type": "string"
},
"chartValues": {
"nullable": true,
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"dataDirectories": {
"properties": {
"k8sDistro": {
"nullable": true,
"type": "string"
},
"provisioning": {
"nullable": true,
"type": "string"
},
"systemAgent": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"etcd": {
"nullable": true,
"properties": {
"disableSnapshots": {
"type": "boolean"
},
"s3": {
"nullable": true,
"properties": {
"bucket": {
"maxLength": 63,
"nullable": true,
"type": "string"
},
"cloudCredentialName": {
"nullable": true,
"type": "string"
},
"endpoint": {
"nullable": true,
"type": "string"
},
"endpointCA": {
"nullable": true,
"type": "string"
},
"folder": {
"nullable": true,
"type": "string"
},
"region": {
"nullable": true,
"type": "string"
},
"skipSSLVerify": {
"type": "boolean"
}
},
"type": "object"
},
"snapshotRetention": {
"type": "integer"
},
"snapshotScheduleCron": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"etcdSnapshotCreate": {
"nullable": true,
"properties": {
"generation": {
"type": "integer"
}
},
"type": "object"
},
"etcdSnapshotRestore": {
"nullable": true,
"properties": {
"generation": {
"type": "integer"
},
"name": {
"nullable": true,
"type": "string"
},
"restoreRKEConfig": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"infrastructureRef": {
"nullable": true,
"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"
},
"machineGlobalConfig": {
"nullable": true,
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"machinePoolDefaults": {
"properties": {
"hostnameLengthLimit": {
"maximum": 63,
"minimum": 10,
"type": "integer"
}
},
"type": "object"
},
"machinePools": {
"items": {
"properties": {
"autoscalingMaxSize": {
"format": "int32",
"nullable": true,
"type": "integer"
},
"autoscalingMinSize": {
"format": "int32",
"nullable": true,
"type": "integer"
},
"cloudCredentialSecretName": {
"maxLength": 317,
"nullable": true,
"type": "string"
},
"controlPlaneRole": {
"type": "boolean"
},
"displayName": {
"nullable": true,
"type": "string"
},
"drainBeforeDelete": {
"type": "boolean"
},
"drainBeforeDeleteTimeout": {
"nullable": true,
"type": "string"
},
"dynamicSchemaSpec": {
"nullable": true,
"type": "string"
},
"etcdRole": {
"type": "boolean"
},
"hostnameLengthLimit": {
"maximum": 63,
"minimum": 10,
"type": "integer"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"machineConfigRef": {
"nullable": true,
"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"
},
"machineDeploymentAnnotations": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"machineDeploymentLabels": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"machineOS": {
"nullable": true,
"type": "string"
},
"maxUnhealthy": {
"nullable": true,
"type": "string"
},
"name": {
"minLength": 1,
"type": "string"
},
"nodeStartupTimeout": {
"nullable": true,
"type": "string"
},
"paused": {
"type": "boolean"
},
"quantity": {
"format": "int32",
"minimum": 0,
"nullable": true,
"type": "integer"
},
"rollingUpdate": {
"nullable": true,
"properties": {
"maxSurge": {
"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
}
},
"type": "object"
},
"taints": {
"items": {
"properties": {
"effect": {
"type": "string"
},
"key": {
"type": "string"
},
"timeAdded": {
"format": "date-time",
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"effect",
"key"
],
"type": "object"
},
"nullable": true,
"type": "array"
},
"unhealthyNodeTimeout": {
"nullable": true,
"type": "string"
},
"unhealthyRange": {
"nullable": true,
"type": "string"
},
"workerRole": {
"type": "boolean"
}
},
"required": [
"machineConfigRef",
"name"
],
"type": "object",
"x-kubernetes-validations": [
{
"message": "AutoscalingMinSize must be greater than 0 when ControlPlaneRole is true",
"rule": "!has(self.controlPlaneRole) || !self.controlPlaneRole || !has(self.autoscalingMinSize) || self.autoscalingMinSize > 0"
},
{
"message": "AutoscalingMinSize must be greater than 0 when EtcdRole is true",
"rule": "!has(self.etcdRole) || !self.etcdRole || !has(self.autoscalingMinSize) || self.autoscalingMinSize > 0"
},
{
"message": "AutoscalingMinSize must be less than or equal to AutoscalingMaxSize when both are non-nil",
"rule": "!has(self.autoscalingMaxSize) || !has(self.autoscalingMinSize) || self.autoscalingMinSize <= self.autoscalingMaxSize"
},
{
"message": "AutoscalingMinSize and AutoscalingMaxSize must both be set if enabling cluster-autoscaling",
"rule": "(has(self.autoscalingMinSize) && has(self.autoscalingMaxSize)) || (!has(self.autoscalingMinSize) && !has(self.autoscalingMaxSize))"
}
]
},
"maxItems": 1000,
"nullable": true,
"type": "array",
"x-kubernetes-list-map-keys": [
"name"
],
"x-kubernetes-list-type": "map"
},
"machineSelectorConfig": {
"items": {
"properties": {
"config": {
"nullable": true,
"type": "object",
"x-kubernetes-preserve-unknown-fields": true
},
"machineLabelSelector": {
"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"
},
"machineSelectorFiles": {
"items": {
"properties": {
"fileSources": {
"items": {
"properties": {
"configMap": {
"properties": {
"defaultPermissions": {
"nullable": true,
"type": "string"
},
"items": {
"items": {
"properties": {
"dynamic": {
"type": "boolean"
},
"hash": {
"nullable": true,
"type": "string"
},
"key": {
"nullable": true,
"type": "string"
},
"path": {
"nullable": true,
"type": "string"
},
"permissions": {
"nullable": true,
"type": "string"
}
},
"required": [
"key",
"path"
],
"type": "object"
},
"nullable": true,
"type": "array"
},
"name": {
"maxLength": 253,
"nullable": true,
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"secret": {
"properties": {
"defaultPermissions": {
"nullable": true,
"type": "string"
},
"items": {
"items": {
"properties": {
"dynamic": {
"type": "boolean"
},
"hash": {
"nullable": true,
"type": "string"
},
"key": {
"nullable": true,
"type": "string"
},
"path": {
"nullable": true,
"type": "string"
},
"permissions": {
"nullable": true,
"type": "string"
}
},
"required": [
"key",
"path"
],
"type": "object"
},
"nullable": true,
"type": "array"
},
"name": {
"maxLength": 253,
"nullable": true,
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"machineLabelSelector": {
"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"
},
"networking": {
"nullable": true,
"properties": {
"stackPreference": {
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"provisionGeneration": {
"type": "integer"
},
"registries": {
"nullable": true,
"properties": {
"configs": {
"additionalProperties": {
"properties": {
"authConfigSecretName": {
"maxLength": 253,
"nullable": true,
"type": "string"
},
"caBundle": {
"format": "byte",
"nullable": true,
"type": "string"
},
"insecureSkipVerify": {
"type": "boolean"
},
"tlsSecretName": {
"maxLength": 253,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "object"
},
"mirrors": {
"additionalProperties": {
"properties": {
"endpoint": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
},
"rewrite": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
}
},
"type": "object"
},
"nullable": true,
"type": "object"
}
},
"type": "object"
},
"rotateCertificates": {
"nullable": true,
"properties": {
"generation": {
"format": "int64",
"type": "integer"
},
"services": {
"items": {
"type": "string"
},
"nullable": true,
"type": "array"
}
},
"type": "object"
},
"rotateEncryptionKeys": {
"nullable": true,
"properties": {
"generation": {
"format": "int64",
"type": "integer"
}
},
"type": "object"
},
"upgradeStrategy": {
"properties": {
"controlPlaneConcurrency": {
"maxLength": 10,
"nullable": true,
"pattern": "^((([1-9]|[1-9][0-9]|100)%)|([1-9][0-9]*|0)|)$",
"type": "string"
},
"controlPlaneDrainOptions": {
"properties": {
"deleteEmptyDirData": {
"type": "boolean"
},
"disableEviction": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"gracePeriod": {
"type": "integer"
},
"ignoreDaemonSets": {
"nullable": true,
"type": "boolean"
},
"ignoreErrors": {
"type": "boolean"
},
"postDrainHooks": {
"items": {
"properties": {
"annotation": {
"maxLength": 317,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"preDrainHooks": {
"items": {
"properties": {
"annotation": {
"maxLength": 317,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"skipWaitForDeleteTimeoutSeconds": {
"type": "integer"
},
"timeout": {
"type": "integer"
}
},
"type": "object"
},
"workerConcurrency": {
"maxLength": 10,
"nullable": true,
"pattern": "^((([1-9]|[1-9][0-9]|100)%)|([1-9][0-9]*|0)|)$",
"type": "string"
},
"workerDrainOptions": {
"properties": {
"deleteEmptyDirData": {
"type": "boolean"
},
"disableEviction": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"force": {
"type": "boolean"
},
"gracePeriod": {
"type": "integer"
},
"ignoreDaemonSets": {
"nullable": true,
"type": "boolean"
},
"ignoreErrors": {
"type": "boolean"
},
"postDrainHooks": {
"items": {
"properties": {
"annotation": {
"maxLength": 317,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"preDrainHooks": {
"items": {
"properties": {
"annotation": {
"maxLength": 317,
"nullable": true,
"type": "string"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
},
"skipWaitForDeleteTimeoutSeconds": {
"type": "integer"
},
"timeout": {
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"status": {
"properties": {
"agentDeployed": {
"type": "boolean"
},
"clientSecretName": {
"maxLength": 253,
"type": "string"
},
"clusterName": {
"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",
"x-kubernetes-list-map-keys": [
"type"
],
"x-kubernetes-list-type": "map"
},
"fleetWorkspaceName": {
"maxLength": 63,
"type": "string"
},
"observedGeneration": {
"format": "int64",
"type": "integer"
},
"ready": {
"type": "boolean"
}
},
"type": "object"
}
},
"type": "object"
}