2bd8fcc0c2
- 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)
333 lines
8.3 KiB
JSON
333 lines
8.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object"
|
|
},
|
|
"spec": {
|
|
"properties": {
|
|
"allowStaticCreds": {
|
|
"type": "boolean"
|
|
},
|
|
"destination": {
|
|
"properties": {
|
|
"annotations": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"create": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"labels": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"overwrite": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"transformation": {
|
|
"properties": {
|
|
"excludeRaw": {
|
|
"type": "boolean"
|
|
},
|
|
"excludes": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"includes": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"templates": {
|
|
"additionalProperties": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"text"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"transformationRefs": {
|
|
"items": {
|
|
"properties": {
|
|
"ignoreExcludes": {
|
|
"type": "boolean"
|
|
},
|
|
"ignoreIncludes": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"templateRefs": {
|
|
"items": {
|
|
"properties": {
|
|
"keyOverride": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"mount": {
|
|
"type": "string"
|
|
},
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"refreshAfter": {
|
|
"pattern": "^([0-9]+(\\.[0-9]+)?(s|m|h))$",
|
|
"type": "string"
|
|
},
|
|
"renewalPercent": {
|
|
"default": 67,
|
|
"maximum": 90,
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"requestHTTPMethod": {
|
|
"enum": [
|
|
"GET",
|
|
"POST",
|
|
"PUT"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"revoke": {
|
|
"type": "boolean"
|
|
},
|
|
"rolloutRestartTargets": {
|
|
"items": {
|
|
"properties": {
|
|
"kind": {
|
|
"enum": [
|
|
"Deployment",
|
|
"DaemonSet",
|
|
"StatefulSet",
|
|
"argo.Rollout"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"kind",
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"vaultAuthRef": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"destination",
|
|
"mount",
|
|
"path"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"status": {
|
|
"properties": {
|
|
"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"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"lastGeneration": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"lastRenewalTime": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"lastRuntimePodUID": {
|
|
"type": "string"
|
|
},
|
|
"secretLease": {
|
|
"properties": {
|
|
"duration": {
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"renewable": {
|
|
"type": "boolean"
|
|
},
|
|
"requestID": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"duration",
|
|
"id",
|
|
"renewable",
|
|
"requestID"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"secretMAC": {
|
|
"type": "string"
|
|
},
|
|
"staticCredsMetaData": {
|
|
"properties": {
|
|
"lastVaultRotation": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"rotationPeriod": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"rotationSchedule": {
|
|
"type": "string"
|
|
},
|
|
"ttl": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"lastVaultRotation",
|
|
"rotationPeriod",
|
|
"ttl"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"vaultClientMeta": {
|
|
"properties": {
|
|
"cacheKey": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"required": [
|
|
"lastGeneration",
|
|
"lastRenewalTime",
|
|
"secretLease"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|