diff --git a/REUSE.toml b/REUSE.toml index fbd0d1e6..fd644f82 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -21,8 +21,8 @@ SPDX-FileCopyrightText = ["Copyright 2026 Element Creations Ltd"] SPDX-License-Identifier = "AGPL-3.0-only" [[annotations]] -path = "scripts/testdata/**/*.json" -SPDX-FileCopyrightText = ["Copyright 2024-2025 New Vector Ltd", "Copyright 2025 Element Creations Ltd"] +path = "scripts/testdata/**/**/*.json" +SPDX-FileCopyrightText = ["Copyright 2024-2025 New Vector Ltd", "Copyright 2025-2026 Element Creations Ltd"] SPDX-License-Identifier = "AGPL-3.0-only" [[annotations]] diff --git a/charts/matrix-stack/values.schema.json b/charts/matrix-stack/values.schema.json index beb35eb3..9e393d79 100644 --- a/charts/matrix-stack/values.schema.json +++ b/charts/matrix-stack/values.schema.json @@ -4,20 +4,13 @@ "type": "object", "properties": { "global": { - "type": "object", - "additionalProperties": true + "$ref": "#/$defs/common_global" }, "serverName": { "type": "string" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "certManager": { "type": "object", @@ -56,101 +49,13 @@ "type": "object", "properties": { "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "ephemeralStorages": { "type": "object", "properties": { "renderedConfig": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -185,6 +90,199 @@ "additionalProperties": false }, "ingress": { + "$ref": "#/$defs/common_ingress_global" + }, + "storage": { + "$ref": "#/$defs/common_storage_global" + }, + "nodeSelector": { + "$ref": "#/$defs/common_nodeSelector" + }, + "tolerations": { + "$ref": "#/$defs/common_tolerations" + }, + "topologySpreadConstraints": { + "$ref": "#/$defs/common_topologySpreadConstraints" + }, + "priorityClassName": { + "type": "string" + }, + "schedulerName": { + "type": "string" + }, + "runtimeClassName": { + "type": "string" + }, + "affinity": { + "$ref": "#/$defs/common_affinity" + }, + "clusterDomain": { + "type": "string" + }, + "networking": { + "type": "object", + "properties": { + "ipFamily": { + "type": "string", + "enum": [ + "ipv4", + "ipv6", + "dual-stack" + ] + } + }, + "additionalProperties": false + }, + "deploymentMarkers": { + "$ref": "#/$defs/deployment-markers" + }, + "initSecrets": { + "$ref": "#/$defs/init-secrets" + }, + "matrixRTC": { + "$ref": "#/$defs/matrix-rtc" + }, + "elementAdmin": { + "$ref": "#/$defs/element-admin" + }, + "elementWeb": { + "$ref": "#/$defs/element-web" + }, + "haproxy": { + "$ref": "#/$defs/haproxy" + }, + "hookshot": { + "$ref": "#/$defs/hookshot" + }, + "matrixAuthenticationService": { + "$ref": "#/$defs/matrixAuthenticationService" + }, + "postgres": { + "$ref": "#/$defs/postgres" + }, + "valkey": { + "$ref": "#/$defs/valkey" + }, + "redis": { + "$ref": "#/$defs/redis" + }, + "synapse": { + "$ref": "#/$defs/synapse" + }, + "wellKnownDelegation": { + "$ref": "#/$defs/wellKnownDelegation" + } + }, + "additionalProperties": false, + "$defs": { + "common_global": { + "type": "object", + "additionalProperties": true + }, + "common_labels": { + "type": "object", + "additionalProperties": { + "type": [ + "string", + "null" + ] + } + }, + "common_image": { + "type": "object", + "required": [ + "repository" + ], + "oneOf": [ + { + "required": [ + "tag", + "digest" + ] + }, + { + "required": [ + "digest" + ], + "not": { + "required": [ + "tag" + ] + } + }, + { + "required": [ + "tag" + ], + "not": { + "required": [ + "digest" + ] + } + } + ], + "properties": { + "registry": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "tag": { + "type": [ + "string", + "null" + ] + }, + "digest": { + "type": [ + "string", + "null" + ] + }, + "pullPolicy": { + "type": "string", + "enum": [ + "Always", + "IfNotPresent", + "Never" + ] + }, + "pullSecrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "common_ephemeralStorage": { + "type": "object", + "properties": { + "sizeLimit": { + "type": "string", + "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", + "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." + }, + "medium": { + "type": "string", + "enum": [ + "", + "Memory" + ], + "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." + } + }, + "additionalProperties": false + }, + "common_ingress_global": { "type": "object", "properties": { "annotations": { @@ -249,7 +347,7 @@ }, "additionalProperties": false }, - "storage": { + "common_storage_global": { "type": "object", "properties": { "storageClassName": { @@ -265,13 +363,13 @@ }, "additionalProperties": false }, - "nodeSelector": { + "common_nodeSelector": { "type": "object", "additionalProperties": { "type": "string" } }, - "tolerations": { + "common_tolerations": { "type": "array", "items": { "properties": { @@ -300,7 +398,7 @@ "additionalProperties": false } }, - "topologySpreadConstraints": { + "common_topologySpreadConstraints": { "type": "array", "items": { "required": [ @@ -309,53 +407,7 @@ ], "properties": { "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_labelSelector" }, "matchLabelKeys": { "type": [ @@ -403,16 +455,56 @@ "additionalProperties": false } }, - "priorityClassName": { - "type": "string" + "common_labelSelector": { + "type": "object", + "properties": { + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string", + "enum": [ + "In", + "NotIn", + "Exists", + "DoesNotExist" + ] + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchLabels": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "type": [ + "string", + "null" + ] + } + } + }, + "additionalProperties": false }, - "schedulerName": { - "type": "string" - }, - "runtimeClassName": { - "type": "string" - }, - "affinity": { + "common_affinity": { "type": "object", "properties": { "nodeAffinity": { @@ -427,76 +519,7 @@ "nodeSelectorTerms": { "type": "array", "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_nodeSelectorTerm" } } }, @@ -517,76 +540,7 @@ "maximum": 100 }, "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_nodeSelectorTerm" } }, "additionalProperties": false @@ -601,132 +555,7 @@ "requiredDuringSchedulingIgnoredDuringExecution": { "type": "array", "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_podAffinityTerm" } }, "preferredDuringSchedulingIgnoredDuringExecution": { @@ -744,132 +573,7 @@ "maximum": 100 }, "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_podAffinityTerm" } }, "additionalProperties": false @@ -884,132 +588,7 @@ "requiredDuringSchedulingIgnoredDuringExecution": { "type": "array", "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_podAffinityTerm" } }, "preferredDuringSchedulingIgnoredDuringExecution": { @@ -1027,132 +606,7 @@ "maximum": 100 }, "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_podAffinityTerm" } }, "additionalProperties": false @@ -1164,26 +618,115 @@ }, "additionalProperties": false }, - "clusterDomain": { - "type": "string" - }, - "networking": { + "common_nodeSelectorTerm": { "type": "object", "properties": { - "ipFamily": { - "type": "string", - "enum": [ - "ipv4", - "ipv6", - "dual-stack" - ] + "matchExpressions": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string", + "enum": [ + "In", + "NotIn", + "Exists", + "DoesNotExist", + "Gt", + "Lt" + ] + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "matchFields": { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string" + }, + "operator": { + "type": "string", + "enum": [ + "In", + "NotIn", + "Exists", + "DoesNotExist", + "Gt", + "Lt" + ] + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } } }, "additionalProperties": false }, - "deploymentMarkers": { - "$id": "file://deployment-markers", - "$schema": "https://json-schema.org/draft/2020-12/schema", + "common_podAffinityTerm": { + "type": "object", + "required": [ + "topologyKey" + ], + "properties": { + "labelSelector": { + "$ref": "#/$defs/common_labelSelector" + }, + "namespaceSelector": { + "$ref": "#/$defs/common_labelSelector" + }, + "namespaces": { + "type": "array", + "items": { + "type": "string" + } + }, + "topologyKey": { + "type": "string" + }, + "matchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + }, + "mismatchLabelKeys": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "deployment-markers": { "type": "object", "properties": { "enabled": { @@ -1199,167 +742,28 @@ "additionalProperties": false }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -1371,816 +775,143 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { + "$ref": "#/$defs/common_podSecurityContext" + }, + "resources": { + "$ref": "#/$defs/common_resources" + }, + "serviceAccount": { + "$ref": "#/$defs/common_serviceAccount" + }, + "tolerations": { + "$ref": "#/$defs/common_tolerations" + }, + "topologySpreadConstraints": { + "$ref": "#/$defs/common_topologySpreadConstraints" + } + }, + "additionalProperties": false + }, + "common_workloadAnnotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "common_extraEnv": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "common_extraVolumes": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name" + ], + "additionalProperties": true, + "properties": { + "name": { + "type": "string" + } + } + } + }, + "common_extraVolumeMounts": { + "type": "array", + "items": { + "required": [ + "name", + "mountPath" + ], + "type": "object", + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "readOnly": { + "type": "boolean", + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." + }, + "mountPath": { + "type": [ + "string", + "null" + ], + "description": "Path within the container at which the volume should be mounted. Must not contain ':'." + }, + "subPath": { + "type": [ + "string", + "null" + ], + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "This must match the Name of a Volume." + } + }, + "additionalProperties": false + } + }, + "common_extraInitContainers": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "image" + ], + "additionalProperties": true, + "properties": { + "name": { + "type": "string" + }, + "image": { + "type": "string" + } + } + } + }, + "common_containersSecurityContext": { + "properties": { + "allowPrivilegeEscalation": { + "type": "boolean" + }, + "privileged": { + "type": "boolean" + }, + "capabilities": { "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { + "add": { "items": { - "format": "int64", - "type": "integer" + "type": "string" + }, + "type": "array" + }, + "drop": { + "items": { + "type": "string" }, "type": "array" } @@ -2188,196 +919,149 @@ "type": "object", "additionalProperties": false }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "readOnlyRootFilesystem": { + "type": "boolean" }, - "serviceAccount": { - "type": "object", + "seccompProfile": { "properties": { - "create": { - "type": "boolean" - }, - "name": { + "localhostProfile": { "type": "string" }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" } }, + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false + }, + "common_podSecurityContext": { + "properties": { + "fsGroup": { + "format": "int64", + "type": "integer" + }, + "fsGroupChangePolicy": { + "type": "string" + }, + "runAsGroup": { + "format": "int64", + "type": "integer" + }, + "runAsNonRoot": { + "type": "boolean" + }, + "runAsUser": { + "format": "int64", + "type": "integer" + }, + "seLinuxOptions": { + "properties": { + "level": { + "type": "string" + }, + "role": { + "type": "string" + }, + "type": { + "type": "string" + }, + "user": { + "type": "string" + } + }, + "type": "object", "additionalProperties": false }, - "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } + "seccompProfile": { + "properties": { + "localhostProfile": { + "type": "string" }, - "type": "object", - "additionalProperties": false - } + "type": { + "enum": [ + "RuntimeDefault", + "Unconfined", + "Localhost" + ], + "type": "string" + } + }, + "type": "object", + "additionalProperties": false }, - "topologySpreadConstraints": { - "type": "array", + "supplementalGroups": { "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false + "format": "int64", + "type": "integer" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "common_resources": { + "properties": { + "limits": { + "additionalProperties": { + "anyOf": [ + { + "type": "integer" }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { + { "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] } - }, - "type": "object", - "additionalProperties": false + ], + "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" + }, + "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]+))))?$" + }, + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + }, + "common_serviceAccount": { + "type": "object", + "properties": { + "create": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" } } }, "additionalProperties": false }, - "initSecrets": { - "$id": "file://init-secrets", - "$schema": "https://json-schema.org/draft/2020-12/schema", + "init-secrets": { "type": "object", "properties": { "enabled": { @@ -2393,167 +1077,28 @@ "additionalProperties": false }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -2565,1013 +1110,27 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" } }, "additionalProperties": false }, - "matrixRTC": { - "$id": "file://matrix-rtc", - "$schema": "https://json-schema.org/draft/2020-12/schema", + "matrix-rtc": { "type": "object", "properties": { "enabled": { @@ -3590,85 +1149,13 @@ "type": "string" }, "secret": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" } }, "additionalProperties": false }, "appserviceRegistration": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "user": { "type": "object", @@ -3681,72 +1168,7 @@ "additionalProperties": false }, "redisOrValkey": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Redis/Valkey host address" - }, - "port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "default": 6379 - }, - "db": { - "type": "integer", - "minimum": 0, - "maximum": 15, - "default": 0 - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "tls": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_redis" }, "replicas": { "minimum": 0, @@ -3754,531 +1176,46 @@ "type": "integer" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "host": { - "type": "string" - }, - "className": { - "type": "string" - }, - "tlsEnabled": { - "type": "boolean" - }, - "tlsSecret": { - "type": "string" - }, - "controllerType": { - "type": "string", - "enum": [ - "ingress-nginx" - ] - }, - "service": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ingress" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "hostAliases": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "hostnames": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_hostAliases" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "dnsPolicy": { "type": "string" }, "dnsConfig": { - "type": "object", - "properties": { - "nameservers": { - "type": "array", - "items": { - "type": "string" - } - }, - "searches": { - "type": "array", - "items": { - "type": "string" - } - }, - "options": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_dnsConfig" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -4290,1129 +1227,31 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "sfu": { "type": "object", @@ -5449,204 +1288,28 @@ "type": "integer" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "hostAliases": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "hostnames": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_hostAliases" }, "hostNetwork": { "type": "boolean" @@ -5665,183 +1328,13 @@ ] }, "redisOrValkey": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Redis/Valkey host address" - }, - "port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "default": 6379 - }, - "db": { - "type": "integer", - "minimum": 0, - "maximum": 15, - "default": 0 - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "tls": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_redis" }, "redis": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Redis/Valkey host address" - }, - "port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "default": 6379 - }, - "db": { - "type": "integer", - "minimum": 0, - "maximum": 15, - "default": 0 - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "tls": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_redis" }, "additional": { - "type": "object", - "additionalProperties": { - "type": "object", - "oneOf": [ - { - "required": [ - "config" - ], - "not": { - "required": [ - "configSecret", - "configSecretKey" - ] - } - }, - { - "required": [ - "configSecret", - "configSecretKey" - ], - "not": { - "required": [ - "config" - ] - } - } - ], - "properties": { - "properties": { - "config": { - "type": "string" - }, - "configSecret": { - "type": "string" - }, - "configSecretKey": { - "type": "string" - } - } - } - } + "$ref": "#/$defs/common_additional" }, "logging": { "type": "object", @@ -5874,486 +1367,34 @@ "type": "object", "properties": { "rtcTcp": { - "type": "object", - "required": [ - "enabled", - "portType", - "port" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "portType": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "HostPort", - "LoadBalancer" - ] - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "port": { - "type": "number" - }, - "nodePort": { - "type": "string" - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - }, - "ipFamilyPolicy": { - "type": "string", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ] - }, - "ipFamilies": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IPv4", - "IPv6" - ] - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_exposedServicePort" }, "rtcMuxedUdp": { - "type": "object", - "required": [ - "enabled", - "portType", - "port" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "portType": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "HostPort", - "LoadBalancer" - ] - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "port": { - "type": "number" - }, - "nodePort": { - "type": "string" - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - }, - "ipFamilyPolicy": { - "type": "string", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ] - }, - "ipFamilies": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IPv4", - "IPv6" - ] - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_exposedServicePort" }, "rtcUdp": { - "type": "object", - "required": [ - "enabled", - "portType", - "portRange" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "portType": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "HostPort", - "LoadBalancer" - ] - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "portRange": { - "type": "object", - "required": [ - "startPort", - "endPort" - ], - "properties": { - "startPort": { - "type": "number" - }, - "endPort": { - "type": "number" - }, - "nodePort": { - "type": "string" - } - }, - "additionalProperties": false - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - }, - "ipFamilyPolicy": { - "type": "string", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ] - }, - "ipFamilies": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IPv4", - "IPv6" - ] - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_exposedServicePortRange" }, "turnTLS": { - "type": "object", - "required": [ - "enabled", - "portType", - "port" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "portType": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "HostPort", - "LoadBalancer" - ] - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "port": { - "type": "number" - }, - "nodePort": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "tlsSecret": { - "type": "string" - }, - "tlsTerminationOnPod": { - "type": "boolean" - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - }, - "ipFamilyPolicy": { - "type": "string", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ] - }, - "ipFamilies": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IPv4", - "IPv6" - ] - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_exposedServicePortWithTLS" }, "turn": { - "type": "object", - "required": [ - "enabled", - "portType", - "port" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "portType": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "HostPort", - "LoadBalancer" - ] - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "port": { - "type": "number" - }, - "nodePort": { - "type": "string" - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - }, - "ipFamilyPolicy": { - "type": "string", - "enum": [ - "SingleStack", - "PreferDualStack", - "RequireDualStack" - ] - }, - "ipFamilies": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IPv4", - "IPv6" - ] - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_exposedServicePort" } }, "additionalProperties": false }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "dnsPolicy": { "type": "string" }, "dnsConfig": { - "type": "object", - "properties": { - "nameservers": { - "type": "array", - "items": { - "type": "string" - } - }, - "searches": { - "type": "array", - "items": { - "type": "string" - } - }, - "options": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_dnsConfig" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -6365,1288 +1406,34 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" } }, "additionalProperties": false @@ -7654,170 +1441,81 @@ }, "additionalProperties": false }, - "elementAdmin": { - "$id": "file://element-admin", - "$schema": "https://json-schema.org/draft/2020-12/schema", + "common_credential": { + "type": "object", + "oneOf": [ + { + "required": [ + "value" + ], + "not": { + "required": [ + "secret", + "secretKey" + ] + } + }, + { + "required": [ + "secret", + "secretKey" + ], + "not": { + "required": [ + "value" + ] + } + } + ], + "properties": { + "value": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "secretKey": { + "type": "string" + } + }, + "additionalProperties": false + }, + "common_redis": { + "type": "object", + "required": [ + "host" + ], + "properties": { + "host": { + "type": "string", + "description": "Redis/Valkey host address" + }, + "port": { + "type": "integer", + "minimum": 1, + "maximum": 65535, + "default": 6379 + }, + "db": { + "type": "integer", + "minimum": 0, + "maximum": 15, + "default": 0 + }, + "password": { + "$ref": "#/$defs/common_credential" + }, + "tls": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + "common_ingress": { "type": "object", "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "type": "integer" - }, - "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "host": { - "type": "string" - }, - "className": { - "type": "string" - }, - "tlsEnabled": { - "type": "boolean" - }, - "tlsSecret": { - "type": "string" - }, - "controllerType": { - "type": "string", - "enum": [ - "ingress-nginx" - ] - }, - "service": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, - "labels": { + "annotations": { "type": "object", "additionalProperties": { "type": [ @@ -7826,93 +1524,110 @@ ] } }, - "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "host": { + "type": "string" }, - "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "className": { + "type": "string" }, - "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "tlsEnabled": { + "type": "boolean" + }, + "tlsSecret": { + "type": "string" + }, + "controllerType": { + "type": "string", + "enum": [ + "ingress-nginx" + ] + }, + "service": { + "$ref": "#/$defs/common_service" + } + }, + "additionalProperties": false + }, + "common_service": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ClusterIP", + "NodePort", + "LoadBalancer" + ] }, "annotations": { "type": "object", "additionalProperties": { + "type": [ + "string", + "null" + ] + } + }, + "internalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "externalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "externalIPs": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "common_hostAliases": { + "type": "array", + "items": { + "type": "object", + "properties": { + "ip": { + "type": "string" + }, + "hostnames": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + } + }, + "common_dnsConfig": { + "type": "object", + "properties": { + "nameservers": { + "type": "array", + "items": { "type": "string" } }, - "extraEnv": { + "searches": { + "type": "array", + "items": { + "type": "string" + } + }, + "options": { "type": "array", "items": { "type": "object", - "required": [ - "name", - "value" - ], "properties": { "name": { "type": "string" @@ -7923,63 +1638,534 @@ }, "additionalProperties": false } + } + }, + "additionalProperties": false + }, + "common_serviceMonitors": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" }, - "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" + "relabelings": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "sourceLabels": { + "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", + "type": "array", + "items": { + "type": "string", + "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" } }, - "type": "object", - "additionalProperties": false + "separator": { + "description": "Separator placed between concatenated source label values.", + "type": "string", + "default": ";" + }, + "targetLabel": { + "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", + "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", + "type": "string" + }, + "regex": { + "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", + "description": "Regular expression against which the extracted value is matched.", + "type": "string", + "default": "(.*)" + }, + "modulus": { + "description": "Modulus to take of the hash of the source label values.", + "type": "integer" + }, + "replacement": { + "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", + "type": "string", + "default": "$1" + }, + "action": { + "description": "Action to perform based on regex matching.", + "type": "string", + "enum": [ + "replace", + "lowercase", + "uppercase", + "keep", + "drop", + "keepequal", + "dropequal", + "hashmod", + "labelmap", + "labeldrop", + "labelkeep" + ], + "default": "replace" + } }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { + "if": { "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" + "action": { + "const": "replace" + } + } + }, + "then": { + "required": [ + "targetLabel" + ] + }, + "additionalProperties": false + } + }, + "metricRelabelings": { + "type": [ + "array", + "null" + ], + "items": { + "type": "object", + "properties": { + "sourceLabels": { + "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", + "type": "array", + "items": { + "type": "string", + "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" } }, - "type": "object", - "additionalProperties": false + "separator": { + "description": "Separator placed between concatenated source label values.", + "type": "string", + "default": ";" + }, + "targetLabel": { + "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", + "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", + "type": "string" + }, + "regex": { + "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", + "description": "Regular expression against which the extracted value is matched.", + "type": "string", + "default": "(.*)" + }, + "modulus": { + "description": "Modulus to take of the hash of the source label values.", + "type": "integer" + }, + "replacement": { + "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", + "type": "string", + "default": "$1" + }, + "action": { + "description": "Action to perform based on regex matching.", + "type": "string", + "enum": [ + "replace", + "lowercase", + "uppercase", + "keep", + "drop", + "keepequal", + "dropequal", + "hashmod", + "labelmap", + "labeldrop", + "labelkeep" + ], + "default": "replace" + } + }, + "if": { + "properties": { + "action": { + "const": "replace" + } + } + }, + "then": { + "required": [ + "targetLabel" + ] + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "common_probe": { + "type": "object", + "properties": { + "failureThreshold": { + "type": [ + "integer", + "null" + ], + "minimum": 1 + }, + "initialDelaySeconds": { + "type": [ + "integer", + "null" + ], + "minimum": 0 + }, + "periodSeconds": { + "type": [ + "integer", + "null" + ], + "minimum": 1 + }, + "successThreshold": { + "type": [ + "integer", + "null" + ], + "minimum": 1 + }, + "timeoutSeconds": { + "type": [ + "integer", + "null" + ], + "minimum": 1 + } + }, + "additionalProperties": false + }, + "common_additional": { + "type": "object", + "additionalProperties": { + "type": "object", + "oneOf": [ + { + "required": [ + "config" + ], + "not": { + "required": [ + "configSecret", + "configSecretKey" + ] } }, - "type": "object", - "additionalProperties": false + { + "required": [ + "configSecret", + "configSecretKey" + ], + "not": { + "required": [ + "config" + ] + } + } + ], + "properties": { + "properties": { + "config": { + "type": "string" + }, + "configSecret": { + "type": "string" + }, + "configSecretKey": { + "type": "string" + } + } + } + } + }, + "common_exposedServicePort": { + "type": "object", + "required": [ + "enabled", + "portType", + "port" + ], + "properties": { + "enabled": { + "type": "boolean" }, - "nodeSelector": { + "annotations": { "type": "object", "additionalProperties": { "type": "string" } }, + "portType": { + "type": "string", + "enum": [ + "ClusterIP", + "NodePort", + "HostPort", + "LoadBalancer" + ] + }, + "internalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "externalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "port": { + "type": "number" + }, + "nodePort": { + "type": "string" + }, + "externalIPs": { + "type": "array", + "items": { + "type": "string" + } + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ] + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + } + } + }, + "additionalProperties": false + }, + "common_exposedServicePortRange": { + "type": "object", + "required": [ + "enabled", + "portType", + "portRange" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "portType": { + "type": "string", + "enum": [ + "ClusterIP", + "NodePort", + "HostPort", + "LoadBalancer" + ] + }, + "internalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "externalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "portRange": { + "type": "object", + "required": [ + "startPort", + "endPort" + ], + "properties": { + "startPort": { + "type": "number" + }, + "endPort": { + "type": "number" + }, + "nodePort": { + "type": "string" + } + }, + "additionalProperties": false + }, + "externalIPs": { + "type": "array", + "items": { + "type": "string" + } + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ] + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + } + } + }, + "additionalProperties": false + }, + "common_exposedServicePortWithTLS": { + "type": "object", + "required": [ + "enabled", + "portType", + "port" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "portType": { + "type": "string", + "enum": [ + "ClusterIP", + "NodePort", + "HostPort", + "LoadBalancer" + ] + }, + "internalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "externalTrafficPolicy": { + "type": "string", + "enum": [ + "Cluster", + "Local" + ] + }, + "port": { + "type": "number" + }, + "nodePort": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "tlsSecret": { + "type": "string" + }, + "tlsTerminationOnPod": { + "type": "boolean" + }, + "externalIPs": { + "type": "array", + "items": { + "type": "string" + } + }, + "ipFamilyPolicy": { + "type": "string", + "enum": [ + "SingleStack", + "PreferDualStack", + "RequireDualStack" + ] + }, + "ipFamilies": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPv4", + "IPv6" + ] + } + } + }, + "additionalProperties": false + }, + "element-admin": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "replicas": { + "minimum": 0, + "type": "integer" + }, + "image": { + "$ref": "#/$defs/common_image" + }, + "ingress": { + "$ref": "#/$defs/common_ingress" + }, + "labels": { + "$ref": "#/$defs/common_labels" + }, + "extraVolumes": { + "$ref": "#/$defs/common_extraVolumes" + }, + "extraVolumeMounts": { + "$ref": "#/$defs/common_extraVolumeMounts" + }, + "extraInitContainers": { + "$ref": "#/$defs/common_extraInitContainers" + }, + "annotations": { + "$ref": "#/$defs/common_workloadAnnotations" + }, + "extraEnv": { + "$ref": "#/$defs/common_extraEnv" + }, + "containersSecurityContext": { + "$ref": "#/$defs/common_containersSecurityContext" + }, + "nodeSelector": { + "$ref": "#/$defs/common_nodeSelector" + }, "priorityClassName": { "type": "string" }, @@ -7990,1151 +2176,37 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "ephemeralStorages": { "type": "object", "properties": { "tmp": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -9149,9 +2221,7 @@ }, "additionalProperties": false }, - "elementWeb": { - "$id": "file://element-web", - "$schema": "https://json-schema.org/draft/2020-12/schema", + "element-web": { "type": "object", "properties": { "enabled": { @@ -9168,318 +2238,34 @@ "type": "integer" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "host": { - "type": "string" - }, - "className": { - "type": "string" - }, - "tlsEnabled": { - "type": "boolean" - }, - "tlsSecret": { - "type": "string" - }, - "controllerType": { - "type": "string", - "enum": [ - "ingress-nginx" - ] - }, - "service": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ingress" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -9491,1151 +2277,37 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "ephemeralStorages": { "type": "object", "properties": { "tmp": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -10651,8 +2323,6 @@ "additionalProperties": false }, "haproxy": { - "$id": "file://haproxy", - "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "replicas": { @@ -10668,242 +2338,31 @@ "type": "string" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -10915,1295 +2374,39 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" } }, "additionalProperties": false }, "hookshot": { - "$id": "file://hookshot", - "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "enabled": { @@ -12216,222 +2419,20 @@ "type": "integer" }, "appserviceRegistration": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "enableEncryption": { "type": "boolean", "description": "Experimental: Enable encryption support" }, "redisOrValkey": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Redis/Valkey host address" - }, - "port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "default": 6379 - }, - "db": { - "type": "integer", - "minimum": 0, - "maximum": 15, - "default": 0 - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "tls": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_redis" }, "redis": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Redis/Valkey host address" - }, - "port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "default": 6379 - }, - "db": { - "type": "integer", - "minimum": 0, - "maximum": 15, - "default": 0 - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "tls": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_redis" }, "passkey": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "logging": { "type": "object", @@ -12461,489 +2462,49 @@ "additionalProperties": false }, "additional": { - "type": "object", - "additionalProperties": { - "type": "object", - "oneOf": [ - { - "required": [ - "config" - ], - "not": { - "required": [ - "configSecret", - "configSecretKey" - ] - } - }, - { - "required": [ - "configSecret", - "configSecretKey" - ], - "not": { - "required": [ - "config" - ] - } - } - ], - "properties": { - "properties": { - "config": { - "type": "string" - }, - "configSecret": { - "type": "string" - }, - "configSecretKey": { - "type": "string" - } - } - } - } + "$ref": "#/$defs/common_additional" }, "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "host": { - "type": "string" - }, - "className": { - "type": "string" - }, - "tlsEnabled": { - "type": "boolean" - }, - "tlsSecret": { - "type": "string" - }, - "controllerType": { - "type": "string", - "enum": [ - "ingress-nginx" - ] - }, - "service": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ingress" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "storage": { - "type": "object", - "properties": { - "existingClaim": { - "type": "string" - }, - "size": { - "type": "string" - }, - "storageClassName": { - "type": "string" - }, - "resourcePolicy": { - "type": "string", - "enum": [ - "keep", - "delete" - ] - }, - "selector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "volumeName": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_persistentVolumeClaim" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "dnsPolicy": { "type": "string" }, "dnsConfig": { - "type": "object", - "properties": { - "nameservers": { - "type": "array", - "items": { - "type": "string" - } - }, - "searches": { - "type": "array", - "items": { - "type": "string" - } - }, - "options": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_dnsConfig" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "hostAliases": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "hostnames": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_hostAliases" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -12955,1310 +2516,40 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "ephemeralStorages": { "type": "object", "properties": { "tmp": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -14266,9 +2557,35 @@ }, "additionalProperties": false }, + "common_persistentVolumeClaim": { + "type": "object", + "properties": { + "existingClaim": { + "type": "string" + }, + "size": { + "type": "string" + }, + "storageClassName": { + "type": "string" + }, + "resourcePolicy": { + "type": "string", + "enum": [ + "keep", + "delete" + ] + }, + "selector": { + "$ref": "#/$defs/common_labelSelector" + }, + "volumeName": { + "type": "string" + } + }, + "additionalProperties": false + }, "matrixAuthenticationService": { - "$id": "file://matrixAuthenticationService", - "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "enabled": { @@ -14276,200 +2593,16 @@ "description": "Enable the Matrix Authentication Service (MAS) service." }, "additional": { - "type": "object", - "additionalProperties": { - "type": "object", - "oneOf": [ - { - "required": [ - "config" - ], - "not": { - "required": [ - "configSecret", - "configSecretKey" - ] - } - }, - { - "required": [ - "configSecret", - "configSecretKey" - ], - "not": { - "required": [ - "config" - ] - } - } - ], - "properties": { - "properties": { - "config": { - "type": "string" - }, - "configSecret": { - "type": "string" - }, - "configSecretKey": { - "type": "string" - } - } - } - } + "$ref": "#/$defs/common_additional" }, "encryptionSecret": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "synapseSharedSecret": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "postgres": { - "type": "object", - "required": [ - "host", - "user", - "database" - ], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "user": { - "type": "string" - }, - "database": { - "type": "string" - }, - "sslMode": { - "type": "string", - "enum": [ - "disable", - "allow", - "prefer", - "require", - "verify-ca", - "verify-full" - ] - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_postgres-libpq" }, "privateKeys": { "default": {}, @@ -14477,160 +2610,16 @@ "description": "The private keys used for signing. Only RSA private key is required.", "properties": { "ecdsaPrime256v1": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "ecdsaSecp256k1": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "ecdsaSecp384r1": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "rsa": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" } }, "additionalProperties": false @@ -14647,246 +2636,35 @@ "description": "Enable synapse to Matrix Authentication Service migration." }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "dryRun": { "type": "boolean", "description": "Run the migration job in dry-run mode. Do not actually migrate the data." }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -14898,1028 +2676,28 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "ephemeralStorages": { "type": "object", "properties": { "tmpMasCli": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -15928,372 +2706,43 @@ "additionalProperties": false }, "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "host": { - "type": "string" - }, - "className": { - "type": "string" - }, - "tlsEnabled": { - "type": "boolean" - }, - "tlsSecret": { - "type": "string" - }, - "controllerType": { - "type": "string", - "enum": [ - "ingress-nginx" - ] - }, - "service": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ingress" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "dnsPolicy": { "type": "string" }, "dnsConfig": { - "type": "object", - "properties": { - "nameservers": { - "type": "array", - "items": { - "type": "string" - } - }, - "searches": { - "type": "array", - "items": { - "type": "string" - } - }, - "options": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_dnsConfig" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "hostAliases": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "hostnames": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_hostAliases" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -16305,1288 +2754,34 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "preStopSleepSeconds": { "minimum": 1, @@ -17598,88 +2793,53 @@ }, "additionalProperties": false }, + "common_postgres-libpq": { + "type": "object", + "required": [ + "host", + "user", + "database" + ], + "properties": { + "host": { + "type": "string" + }, + "port": { + "type": "integer", + "minimum": 0, + "maximum": 65535 + }, + "user": { + "type": "string" + }, + "database": { + "type": "string" + }, + "sslMode": { + "type": "string", + "enum": [ + "disable", + "allow", + "prefer", + "require", + "verify-ca", + "verify-full" + ] + }, + "password": { + "$ref": "#/$defs/common_credential" + } + }, + "additionalProperties": false + }, "postgres": { - "$id": "file://postgres", - "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "enabled": { "type": "boolean" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "replicas": { "minimum": 0, @@ -17690,722 +2850,76 @@ "type": "object", "properties": { "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" } }, "additionalProperties": false }, "adminPassword": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "essPasswords": { "type": "object", "properties": { "synapse": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "matrixAuthenticationService": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" } }, "additionalProperties": false }, "storage": { - "type": "object", - "properties": { - "existingClaim": { - "type": "string" - }, - "size": { - "type": "string" - }, - "storageClassName": { - "type": "string" - }, - "resourcePolicy": { - "type": "string", - "enum": [ - "keep", - "delete" - ] - }, - "selector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "volumeName": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_persistentVolumeClaim" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -18417,1329 +2931,43 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "ephemeralStorages": { "type": "object", "properties": { "tmp": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" }, "varRun": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -19748,8 +2976,6 @@ "additionalProperties": false }, "valkey": { - "$id": "file://valkey", - "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "maxMemory": { @@ -19774,242 +3000,31 @@ ] }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -20021,1646 +3036,64 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "valkeyExporter": { "type": "object", "properties": { "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" } }, "additionalProperties": false @@ -21669,8 +3102,6 @@ "additionalProperties": false }, "redis": { - "$id": "file://redis", - "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "maxMemory": { @@ -21695,242 +3126,31 @@ ] }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -21942,1646 +3162,64 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "redisExporter": { "type": "object", "properties": { "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumes" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMounts" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" } }, "additionalProperties": false @@ -23590,8 +3228,6 @@ "additionalProperties": false }, "synapse": { - "$id": "file://synapse", - "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "enabled": { @@ -23604,384 +3240,40 @@ "type": "boolean" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" } }, "additionalProperties": false }, "postgres": { - "type": "object", - "required": [ - "host", - "user", - "database" - ], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "integer", - "minimum": 0, - "maximum": 65535 - }, - "user": { - "type": "string" - }, - "database": { - "type": "string" - }, - "sslMode": { - "type": "string", - "enum": [ - "disable", - "allow", - "prefer", - "require", - "verify-ca", - "verify-full" - ] - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_postgres-libpq" }, "redisOrValkey": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Redis/Valkey host address" - }, - "port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "default": 6379 - }, - "db": { - "type": "integer", - "minimum": 0, - "maximum": 15, - "default": 0 - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "tls": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_redis" }, "redis": { - "type": "object", - "required": [ - "host" - ], - "properties": { - "host": { - "type": "string", - "description": "Redis/Valkey host address" - }, - "port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "default": 6379 - }, - "db": { - "type": "integer", - "minimum": 0, - "maximum": 15, - "default": 0 - }, - "password": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false - }, - "tls": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_redis" }, "media": { "type": "object", "properties": { "storage": { - "type": "object", - "properties": { - "existingClaim": { - "type": "string" - }, - "size": { - "type": "string" - }, - "storageClassName": { - "type": "string" - }, - "resourcePolicy": { - "type": "string", - "enum": [ - "keep", - "delete" - ] - }, - "selector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "volumeName": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_persistentVolumeClaim" }, "ephemeralStorages": { "type": "object", "properties": { "tmp": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -23994,164 +3286,16 @@ "additionalProperties": false }, "macaroon": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "registrationSharedSecret": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "signingKey": { - "type": "object", - "oneOf": [ - { - "required": [ - "value" - ], - "not": { - "required": [ - "secret", - "secretKey" - ] - } - }, - { - "required": [ - "secret", - "secretKey" - ], - "not": { - "required": [ - "value" - ] - } - } - ], - "properties": { - "value": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_credential" }, "additional": { - "type": "object", - "additionalProperties": { - "type": "object", - "oneOf": [ - { - "required": [ - "config" - ], - "not": { - "required": [ - "configSecret", - "configSecretKey" - ] - } - }, - { - "required": [ - "configSecret", - "configSecretKey" - ], - "not": { - "required": [ - "config" - ] - } - } - ], - "properties": { - "properties": { - "config": { - "type": "string" - }, - "configSecret": { - "type": "string" - }, - "configSecretKey": { - "type": "string" - } - } - } - } + "$ref": "#/$defs/common_additional" }, "appservices": { "type": "array", @@ -24241,370 +3385,34 @@ "type": "integer" }, "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "host": { - "type": "string" - }, - "className": { - "type": "string" - }, - "tlsEnabled": { - "type": "boolean" - }, - "tlsSecret": { - "type": "string" - }, - "controllerType": { - "type": "string", - "enum": [ - "ingress-nginx" - ] - }, - "service": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - }, - "additionalPaths": { - "type": "array", - "items": { - "type": "object", - "required": [ - "path", - "availability" - ], - "properties": { - "path": { - "type": "string" - }, - "availability": { - "type": "string", - "enum": [ - "internally_and_externally", - "only_externally", - "blocked" - ] - }, - "service": { - "type": "object", - "required": [ - "name", - "port" - ], - "properties": { - "name": { - "type": "string" - }, - "port": { - "type": "object", - "oneOf": [ - { - "required": [ - "name" - ], - "not": { - "required": [ - "number" - ] - } - }, - { - "required": [ - "number" - ], - "not": { - "required": [ - "name" - ] - } - } - ], - "properties": { - "name": { - "type": "string" - }, - "number": { - "type": "integer" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/synapse_ingress_with_additional_paths" }, "image": { - "type": "object", - "required": [ - "repository" - ], - "oneOf": [ - { - "required": [ - "tag", - "digest" - ] - }, - { - "required": [ - "digest" - ], - "not": { - "required": [ - "tag" - ] - } - }, - { - "required": [ - "tag" - ], - "not": { - "required": [ - "digest" - ] - } - } - ], - "properties": { - "registry": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "tag": { - "type": [ - "string", - "null" - ] - }, - "digest": { - "type": [ - "string", - "null" - ] - }, - "pullPolicy": { - "type": "string", - "enum": [ - "Always", - "IfNotPresent", - "Never" - ] - }, - "pullSecrets": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_image" }, "labels": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } + "$ref": "#/$defs/common_labels" }, "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_workloadAnnotations" }, "containersSecurityContext": { - "properties": { - "allowPrivilegeEscalation": { - "type": "boolean" - }, - "privileged": { - "type": "boolean" - }, - "capabilities": { - "properties": { - "add": { - "items": { - "type": "string" - }, - "type": "array" - }, - "drop": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false - }, - "readOnlyRootFilesystem": { - "type": "boolean" - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_containersSecurityContext" }, "dnsPolicy": { "type": "string" }, "dnsConfig": { - "type": "object", - "properties": { - "nameservers": { - "type": "array", - "items": { - "type": "string" - } - }, - "searches": { - "type": "array", - "items": { - "type": "string" - } - }, - "options": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_dnsConfig" }, "extraEnv": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "value" - ], - "properties": { - "name": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraEnv" }, "hostAliases": { - "type": "array", - "items": { - "type": "object", - "properties": { - "ip": { - "type": "string" - }, - "hostnames": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_hostAliases" }, "nodeSelector": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/$defs/common_nodeSelector" }, "priorityClassName": { "type": "string" @@ -24616,1403 +3424,49 @@ "type": "string" }, "affinity": { - "type": "object", - "properties": { - "nodeAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "object", - "required": [ - "nodeSelectorTerms" - ], - "properties": { - "nodeSelectorTerms": { - "type": "array", - "items": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "preference" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "preference": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchFields": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist", - "Gt", - "Lt" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - }, - "podAntiAffinity": { - "type": "object", - "properties": { - "requiredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "preferredDuringSchedulingIgnoredDuringExecution": { - "type": "array", - "items": { - "type": "object", - "required": [ - "weight", - "podAffinityTerm" - ], - "properties": { - "weight": { - "type": "integer", - "minimum": 1, - "maximum": 100 - }, - "podAffinityTerm": { - "type": "object", - "required": [ - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaceSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "namespaces": { - "type": "array", - "items": { - "type": "string" - } - }, - "topologyKey": { - "type": "string" - }, - "matchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - }, - "mismatchLabelKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_affinity" }, "extraVolumes": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": true, - "properties": { - "mountContext": { - "type": [ - "string" - ], - "enum": [ - "hook", - "both", - "runtime" - ] - }, - "name": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraVolumesWithContext" }, "extraVolumeMounts": { - "type": "array", - "items": { - "required": [ - "name", - "mountPath" - ], - "type": "object", - "description": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "readOnly": { - "type": "boolean", - "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." - }, - "mountContext": { - "type": [ - "string" - ], - "enum": [ - "hook", - "both", - "runtime" - ] - }, - "mountPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the container at which the volume should be mounted. Must not contain ':'." - }, - "subPath": { - "type": [ - "string", - "null" - ], - "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "This must match the Name of a Volume." - } - }, - "additionalProperties": false - } + "$ref": "#/$defs/common_extraVolumeMountsWithContext" }, "extraInitContainers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "image" - ], - "additionalProperties": true, - "properties": { - "name": { - "type": "string" - }, - "image": { - "type": "string" - } - } - } + "$ref": "#/$defs/common_extraInitContainers" }, "podSecurityContext": { - "properties": { - "fsGroup": { - "format": "int64", - "type": "integer" - }, - "fsGroupChangePolicy": { - "type": "string" - }, - "runAsGroup": { - "format": "int64", - "type": "integer" - }, - "runAsNonRoot": { - "type": "boolean" - }, - "runAsUser": { - "format": "int64", - "type": "integer" - }, - "seLinuxOptions": { - "properties": { - "level": { - "type": "string" - }, - "role": { - "type": "string" - }, - "type": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "seccompProfile": { - "properties": { - "localhostProfile": { - "type": "string" - }, - "type": { - "enum": [ - "RuntimeDefault", - "Unconfined", - "Localhost" - ], - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "supplementalGroups": { - "items": { - "format": "int64", - "type": "integer" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_podSecurityContext" }, "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/common_resources" }, "serviceAccount": { - "type": "object", - "properties": { - "create": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceAccount" }, "serviceMonitors": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "relabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - }, - "metricRelabelings": { - "type": [ - "array", - "null" - ], - "items": { - "type": "object", - "properties": { - "sourceLabels": { - "description": "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.", - "type": "array", - "items": { - "type": "string", - "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$" - } - }, - "separator": { - "description": "Separator placed between concatenated source label values.", - "type": "string", - "default": ";" - }, - "targetLabel": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L146 has a regex capture group, violating vanilla label_name definition.", - "description": "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.", - "type": "string" - }, - "regex": { - "$comment": "https://github.com/prometheus/prometheus/blob/release-2.13/config/testdata/conf.good.yml#L111 has integer instead of string", - "description": "Regular expression against which the extracted value is matched.", - "type": "string", - "default": "(.*)" - }, - "modulus": { - "description": "Modulus to take of the hash of the source label values.", - "type": "integer" - }, - "replacement": { - "description": "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available.", - "type": "string", - "default": "$1" - }, - "action": { - "description": "Action to perform based on regex matching.", - "type": "string", - "enum": [ - "replace", - "lowercase", - "uppercase", - "keep", - "drop", - "keepequal", - "dropequal", - "hashmod", - "labelmap", - "labeldrop", - "labelkeep" - ], - "default": "replace" - } - }, - "if": { - "properties": { - "action": { - "const": "replace" - } - } - }, - "then": { - "required": [ - "targetLabel" - ] - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_serviceMonitors" }, "tolerations": { - "type": "array", - "items": { - "properties": { - "effect": { - "type": "string", - "enum": [ - "NoSchedule", - "PreferNoSchedule", - "NoExecute" - ] - }, - "key": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "tolerationSeconds": { - "type": "number" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_tolerations" }, "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } + "$ref": "#/$defs/common_topologySpreadConstraints" }, "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_probe" }, "ephemeralStorages": { "type": "object", "properties": { "nonMediaTmp": { - "type": "object", - "properties": { - "sizeLimit": { - "type": "string", - "pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$", - "description": "The maximum size of the emptyDir volume, as a Kubernetes quantity string e.g. 10Mi." - }, - "medium": { - "type": "string", - "enum": [ - "", - "Memory" - ], - "description": "The storage medium of the emptyDir volume. \"Memory\" uses tmpfs (RAM-backed); empty string uses the node's default storage." - } - }, - "additionalProperties": false + "$ref": "#/$defs/common_ephemeralStorage" } }, "additionalProperties": false @@ -26021,5302 +3475,73 @@ "type": "object", "properties": { "account-data": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "appservice": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "background": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "client-reader": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "encryption": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "device-lists": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "event-creator": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "event-persister": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "federation-inbound": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "federation-reader": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "federation-sender": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "initial-synchrotron": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "mas-helper": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "media-repository": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "presence-writer": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "push-rules": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "pusher": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "receipts": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "sliding-sync": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "sso-login": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "synchrotron": { - "required": [ - "replicas" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "type": "integer", - "minimum": 0 - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "topologySpreadConstraints": { - "type": "array", - "items": { - "required": [ - "maxSkew", - "topologyKey" - ], - "properties": { - "labelSelector": { - "type": "object", - "properties": { - "matchExpressions": { - "type": "array", - "items": { - "type": "object", - "required": [ - "key", - "operator" - ], - "properties": { - "key": { - "type": "string" - }, - "operator": { - "type": "string", - "enum": [ - "In", - "NotIn", - "Exists", - "DoesNotExist" - ] - }, - "values": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "matchLabels": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - } - }, - "additionalProperties": false - }, - "matchLabelKeys": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "maxSkew": { - "type": "integer", - "minium": 1 - }, - "minDomains": { - "type": "integer", - "minium": 0 - }, - "nodeAffinityPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "nodeTaintsPolicy": { - "type": "string", - "enum": [ - "Honor", - "Ignore" - ] - }, - "topologyKey": { - "type": "string" - }, - "whenUnsatisfiable": { - "type": "string", - "enum": [ - "DoNotSchedule", - "ScheduleAnyway" - ] - } - }, - "type": "object", - "additionalProperties": false - } - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_scalable_worker" }, "typing-persister": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" }, "user-dir": { - "properties": { - "enabled": { - "type": "boolean" - }, - "replicas": { - "minimum": 0, - "maximum": 1, - "type": "integer" - }, - "resources": { - "properties": { - "limits": { - "additionalProperties": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$" - }, - "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]+))))?$" - }, - "type": "object" - } - }, - "type": "object", - "additionalProperties": false - }, - "livenessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "readinessProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - }, - "startupProbe": { - "type": "object", - "properties": { - "failureThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "initialDelaySeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 0 - }, - "periodSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "successThreshold": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - }, - "timeoutSeconds": { - "type": [ - "integer", - "null" - ], - "minimum": 1 - } - }, - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false + "$ref": "#/$defs/synapse_single_worker" } }, "additionalProperties": false @@ -31331,88 +3556,10 @@ }, "additionalProperties": false }, - "wellKnownDelegation": { - "$id": "file://wellKnownDelegation", - "$schema": "https://json-schema.org/draft/2020-12/schema", + "synapse_ingress_with_additional_paths": { "type": "object", "properties": { - "enabled": { - "type": "boolean" - }, - "ingress": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "className": { - "type": "string" - }, - "tlsEnabled": { - "type": "boolean" - }, - "tlsSecret": { - "type": "string" - }, - "controllerType": { - "type": "string", - "enum": [ - "ingress-nginx" - ] - }, - "service": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ClusterIP", - "NodePort", - "LoadBalancer" - ] - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": [ - "string", - "null" - ] - } - }, - "internalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalTrafficPolicy": { - "type": "string", - "enum": [ - "Cluster", - "Local" - ] - }, - "externalIPs": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, - "labels": { + "annotations": { "type": "object", "additionalProperties": { "type": [ @@ -31421,6 +3568,244 @@ ] } }, + "host": { + "type": "string" + }, + "className": { + "type": "string" + }, + "tlsEnabled": { + "type": "boolean" + }, + "tlsSecret": { + "type": "string" + }, + "controllerType": { + "type": "string", + "enum": [ + "ingress-nginx" + ] + }, + "service": { + "$ref": "#/$defs/common_service" + }, + "additionalPaths": { + "type": "array", + "items": { + "type": "object", + "required": [ + "path", + "availability" + ], + "properties": { + "path": { + "type": "string" + }, + "availability": { + "type": "string", + "enum": [ + "internally_and_externally", + "only_externally", + "blocked" + ] + }, + "service": { + "type": "object", + "required": [ + "name", + "port" + ], + "properties": { + "name": { + "type": "string" + }, + "port": { + "type": "object", + "oneOf": [ + { + "required": [ + "name" + ], + "not": { + "required": [ + "number" + ] + } + }, + { + "required": [ + "number" + ], + "not": { + "required": [ + "name" + ] + } + } + ], + "properties": { + "name": { + "type": "string" + }, + "number": { + "type": "integer" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "common_extraVolumesWithContext": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name" + ], + "additionalProperties": true, + "properties": { + "mountContext": { + "type": [ + "string" + ], + "enum": [ + "hook", + "both", + "runtime" + ] + }, + "name": { + "type": "string" + } + } + } + }, + "common_extraVolumeMountsWithContext": { + "type": "array", + "items": { + "required": [ + "name", + "mountPath" + ], + "type": "object", + "description": "VolumeMount describes a mounting of a Volume within a container.", + "properties": { + "readOnly": { + "type": "boolean", + "description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false." + }, + "mountContext": { + "type": [ + "string" + ], + "enum": [ + "hook", + "both", + "runtime" + ] + }, + "mountPath": { + "type": [ + "string", + "null" + ], + "description": "Path within the container at which the volume should be mounted. Must not contain ':'." + }, + "subPath": { + "type": [ + "string", + "null" + ], + "description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root)." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "This must match the Name of a Volume." + } + }, + "additionalProperties": false + } + }, + "synapse_single_worker": { + "properties": { + "enabled": { + "type": "boolean" + }, + "replicas": { + "minimum": 0, + "maximum": 1, + "type": "integer" + }, + "resources": { + "$ref": "#/$defs/common_resources" + }, + "livenessProbe": { + "$ref": "#/$defs/common_probe" + }, + "readinessProbe": { + "$ref": "#/$defs/common_probe" + }, + "startupProbe": { + "$ref": "#/$defs/common_probe" + } + }, + "type": "object", + "additionalProperties": false + }, + "synapse_scalable_worker": { + "required": [ + "replicas" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "replicas": { + "type": "integer", + "minimum": 0 + }, + "resources": { + "$ref": "#/$defs/common_resources" + }, + "topologySpreadConstraints": { + "$ref": "#/$defs/common_topologySpreadConstraints" + }, + "livenessProbe": { + "$ref": "#/$defs/common_probe" + }, + "readinessProbe": { + "$ref": "#/$defs/common_probe" + }, + "startupProbe": { + "$ref": "#/$defs/common_probe" + } + }, + "type": "object", + "additionalProperties": false + }, + "wellKnownDelegation": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "ingress": { + "$ref": "#/$defs/common_ingress_without_host" + }, + "labels": { + "$ref": "#/$defs/common_labels" + }, "baseDomainRedirect": { "type": "object", "properties": { @@ -31456,7 +3841,39 @@ } }, "additionalProperties": false + }, + "common_ingress_without_host": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "additionalProperties": { + "type": [ + "string", + "null" + ] + } + }, + "className": { + "type": "string" + }, + "tlsEnabled": { + "type": "boolean" + }, + "tlsSecret": { + "type": "string" + }, + "controllerType": { + "type": "string", + "enum": [ + "ingress-nginx" + ] + }, + "service": { + "$ref": "#/$defs/common_service" + } + }, + "additionalProperties": false } - }, - "additionalProperties": false + } } diff --git a/newsfragments/1693.changed.md b/newsfragments/1693.changed.md new file mode 100644 index 00000000..b6935aff --- /dev/null +++ b/newsfragments/1693.changed.md @@ -0,0 +1 @@ +The `values.schema.json` compilation now uses `$defs` and `$ref` instead of inlining every referenced sub-schema. diff --git a/scripts/construct_helm_schema.py b/scripts/construct_helm_schema.py index 84551cee..371a8c39 100755 --- a/scripts/construct_helm_schema.py +++ b/scripts/construct_helm_schema.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # Copyright 2024-2025 New Vector Ltd -# Copyright 2025 Element Creations Ltd +# Copyright 2025-2026 Element Creations Ltd # # SPDX-License-Identifier: AGPL-3.0-only @@ -42,35 +42,72 @@ def schema_walker(schema_part: dict[Any], callable: Callable[[dict[any]], dict[a return result -# Inline any sub-schemas referenced in other files +# Move any sub-schemas referenced in other files into the $defs of the compiled schema # # When running `helm lint` (or other sub-commands that use the schema to validate the values) # The relative path is relative to the current working directory rather than the schema file. # This means that you can't use file relative refs and have `helm lint` work both for the # parent chart and the sub-chart. We can't use HTTP as that won't work in airgapped envs, so -# inline the sub-schemas. Symlinks were tried but they were obnoxiously noisy due to +# the sub-schemas are collected in the $defs of the compiled schema and referenced with +# internal $refs. Symlinks were tried but they were obnoxiously noisy due to # https://helm.sh/blog/2019-10-30-helm-symlink-security-notice/. We don't want to rely on keeping # complex sub-schemas in-sync for multiple charts/containers/etc, so use this script to merge -def inline_sub_schemas(source_schema: Path, schema_part: dict[Any]) -> dict[Any]: +def move_sub_schemas_to_defs( + source_schema: Path, + schema_part: dict[Any], + sub_schemas: dict[str, dict[Any]], + sub_schema_refs: dict[str, str], +) -> dict[Any]: # We're currently assuming that all $refs are file relative refs. # This won't always be true but lets keep this as simple as we need it for now if "$ref" in schema_part: - # If we're inlining a sub-schema we're only returning things from the inlined sub-schema + # Internal $refs point at $defs of the compiled schema, so there is nothing to move + if not schema_part["$ref"].startswith("file://"): + return schema_part + + # If we're referencing a sub-schema we only return a reference to the matching $def assert len(schema_part.keys()) == 1 sub_schema_ref = schema_part["$ref"] - sub_schema = source_schema.parent / sub_schema_ref.replace("file://", "") - if not sub_schema.exists() or not sub_schema.is_file(): - raise Exception(f"{sub_schema} does not exist relative to {source_schema}. Please appropriately create it") + sub_schema_path = sub_schema_ref.replace("file://", "") + sub_schema_file = source_schema.parent / sub_schema_path + sub_schema_name = sub_schema_path.removesuffix(".json").replace("/", "_") - inlined_sub_schema = json.loads(sub_schema.read_text(encoding="UTF-8")) + # A sub-schema referenced multiple times only needs to be stored in $defs once + if sub_schema_name in sub_schemas: + if sub_schema_refs[sub_schema_name] != sub_schema_path: + raise Exception(f"Multiple sub-schemas would be named {sub_schema_name}. Please rename one of them") - # It doesn't make sense for the root of the inlined sub-schema to immediately be referencing something else + return {"$ref": f"#/$defs/{sub_schema_name}"} + + if not sub_schema_file.exists() or not sub_schema_file.is_file(): + raise Exception( + f"{sub_schema_file} does not exist relative to {source_schema}. Please appropriately create it" + ) + + inlined_sub_schema = json.loads(sub_schema_file.read_text(encoding="UTF-8")) + + # It doesn't make sense for the root of the sub-schema to immediately be referencing something else assert "$ref" not in inlined_sub_schema - # We're only inlining objects or arrays for now to keep this easy to reason about + + # A $def cannot have its own identity. An $id would change the base URI that + # internal $refs inside the $def resolve against + inlined_sub_schema.pop("$id", None) + inlined_sub_schema.pop("$schema", None) + + # We're only moving objects or arrays into $defs for now to keep this easy to reason about assert inlined_sub_schema["type"] in ["object", "array"] - return inlined_sub_schema + # Reserve the name before walking so that a sub-schema can reference itself + sub_schemas[sub_schema_name] = {} + sub_schema_refs[sub_schema_name] = sub_schema_path + # The sub-schema may itself reference further sub-schemas, these are moved into $defs too + sub_schemas[sub_schema_name] = schema_walker( + inlined_sub_schema, + lambda part: move_sub_schemas_to_defs(source_schema, part, sub_schemas, sub_schema_refs), + ) + + return {"$ref": f"#/$defs/{sub_schema_name}"} return schema_part @@ -79,6 +116,10 @@ def inline_sub_schemas(source_schema: Path, schema_part: dict[Any]) -> dict[Any] # https://json-schema.org/understanding-json-schema/reference/object#additionalproperties: # "By default any additional properties are allowed." def default_additionalProperties_to_off(_: Path, schema_part: dict[Any]) -> dict[Any]: + # A schema part that only references a $def cannot have additional properties + if "$ref" in schema_part: + return schema_part + if schema_part["type"] == "object" and "additionalProperties" not in schema_part: schema_part["additionalProperties"] = False @@ -86,13 +127,20 @@ def default_additionalProperties_to_off(_: Path, schema_part: dict[Any]) -> dict def construct_helm_schema(source_schema: Path, destination_schema: Path): + sub_schemas: dict[str, dict[Any]] = {} + sub_schema_refs: dict[str, str] = {} schema_manipulators = [ - lambda schema_part: inline_sub_schemas(source_schema, schema_part), + lambda schema_part: move_sub_schemas_to_defs(source_schema, schema_part, sub_schemas, sub_schema_refs), lambda schema_part: default_additionalProperties_to_off(source_schema, schema_part), ] schema_contents = json.loads(source_schema.read_text(encoding="UTF-8")) for schema_manipulator in schema_manipulators: schema_contents = schema_walker(schema_contents, schema_manipulator) + # The collected sub-schemas are not part of the walked schema, so apply the manipulators to them too + for sub_schema_name in sub_schemas: + sub_schemas[sub_schema_name] = schema_walker(sub_schemas[sub_schema_name], schema_manipulator) + if sub_schemas: + schema_contents["$defs"] = sub_schemas destination_schema.write_text(json.dumps(schema_contents, indent=2) + "\n") diff --git a/scripts/test_construct_helm_schema.py b/scripts/test_construct_helm_schema.py index 5470044f..f7e55c28 100644 --- a/scripts/test_construct_helm_schema.py +++ b/scripts/test_construct_helm_schema.py @@ -1,5 +1,5 @@ # Copyright 2024 New Vector Ltd -# Copyright 2025 Element Creations Ltd +# Copyright 2025-2026 Element Creations Ltd # # SPDX-License-Identifier: AGPL-3.0-only @@ -12,7 +12,7 @@ import pytest from .construct_helm_schema import ( construct_helm_schema, default_additionalProperties_to_off, - inline_sub_schemas, + move_sub_schemas_to_defs, schema_walker, ) @@ -109,32 +109,114 @@ def test_leaves_schema_part_for_non_object_alone(): assert "additionalProperties" not in default_additionalProperties_to_off(None, {"type": "array"}) -def test_inline_sub_schema_returns_referenced_sub_schema(): +def test_leaves_schema_part_for_a_ref_alone(): + schema_part = {"$ref": "#/$defs/something"} + assert default_additionalProperties_to_off(None, schema_part) == schema_part + + +def test_move_sub_schemas_to_defs_returns_reference_to_the_sub_schema(): source_root = Path(__file__).parent / "testdata" / "schema_construction" - sub_schema = inline_sub_schemas(source_root / "schema.json", {"$ref": "file://sub_schema1.json"}) - assert sub_schema["type"] == "object" - assert sub_schema["properties"].keys() == set(["first", "second"]) + sub_schemas = {} + sub_schema_refs = {} + + schema_part = move_sub_schemas_to_defs( + source_root / "schema.json", {"$ref": "file://sub_schema1.json"}, sub_schemas, sub_schema_refs + ) + + assert schema_part == {"$ref": "#/$defs/sub_schema1"} + assert sub_schemas["sub_schema1"]["type"] == "object" + assert sub_schemas["sub_schema1"]["properties"].keys() == set(["first", "second"]) -def test_inline_sub_schemas_disallows_other_properties_on_attachment_point(): +def test_move_sub_schemas_to_defs_stores_each_sub_schema_once(): + source_root = Path(__file__).parent / "testdata" / "schema_construction" + sub_schemas = {} + sub_schema_refs = {} + + first_reference = move_sub_schemas_to_defs( + source_root / "schema.json", {"$ref": "file://sub_schema1.json"}, sub_schemas, sub_schema_refs + ) + second_reference = move_sub_schemas_to_defs( + source_root / "schema.json", {"$ref": "file://sub_schema1.json"}, sub_schemas, sub_schema_refs + ) + + assert first_reference == second_reference == {"$ref": "#/$defs/sub_schema1"} + assert sub_schemas.keys() == {"sub_schema1"} + + +def test_move_sub_schemas_to_defs_moves_nested_sub_schemas_too(): + source_root = Path(__file__).parent / "testdata" / "schema_construction" + sub_schemas = {} + sub_schema_refs = {} + + schema_part = move_sub_schemas_to_defs( + source_root / "schema.json", {"$ref": "file://sub_schema2.json"}, sub_schemas, sub_schema_refs + ) + + assert schema_part == {"$ref": "#/$defs/sub_schema2"} + assert sub_schemas["sub_schema2"]["properties"]["nested"] == {"$ref": "#/$defs/sub_schema1"} + assert sub_schemas["sub_schema1"]["properties"].keys() == set(["first", "second"]) + + +def test_move_sub_schemas_to_defs_strips_the_sub_schema_identity(): + source_root = Path(__file__).parent / "testdata" / "schema_construction" + sub_schemas = {} + sub_schema_refs = {} + + move_sub_schemas_to_defs( + source_root / "schema.json", {"$ref": "file://sub_schema2.json"}, sub_schemas, sub_schema_refs + ) + + # The compiled schema is a single document so the $def cannot have its own identity + assert "$id" not in sub_schemas["sub_schema2"] + assert "$schema" not in sub_schemas["sub_schema2"] + + +def test_move_sub_schemas_to_defs_disallows_other_properties_on_reference_point(): source_root = Path(__file__).parent / "testdata" / "schema_construction" with pytest.raises(AssertionError): - inline_sub_schemas( + move_sub_schemas_to_defs( source_root / "schema.json", {"$ref": "file://sub_schema1.json", "other": "disallowed"}, + {}, + {}, ) -def test_inline_sub_schemas_disallows_non_object_sub_schemas(): +def test_move_sub_schemas_to_defs_disallows_non_object_sub_schemas(): source_root = Path(__file__).parent / "testdata" / "schema_construction" with pytest.raises(AssertionError): - inline_sub_schemas(source_root / "schema.json", {"$ref": "file://invalid_sub_schema1.json"}) + move_sub_schemas_to_defs( + source_root / "schema.json", + {"$ref": "file://invalid_sub_schema1.json"}, + {}, + {}, + ) -def test_inline_sub_schemas_disallows_immediately_referencing_another_sub_schema(): +def test_move_sub_schemas_to_defs_disallows_immediately_referencing_another_sub_schema(): source_root = Path(__file__).parent / "testdata" / "schema_construction" with pytest.raises(AssertionError): - inline_sub_schemas(source_root / "schema.json", {"$ref": "file://invalid_sub_schema2.json"}) + move_sub_schemas_to_defs( + source_root / "schema.json", + {"$ref": "file://invalid_sub_schema2.json"}, + {}, + {}, + ) + + +def test_move_sub_schemas_to_defs_rejects_sub_schemas_with_the_same_name(): + source_root = Path(__file__).parent / "testdata" / "schema_construction" + sub_schemas = {} + sub_schema_refs = {} + + move_sub_schemas_to_defs( + source_root / "schema.json", {"$ref": "file://collision/sub.json"}, sub_schemas, sub_schema_refs + ) + with pytest.raises(Exception, match="Multiple sub-schemas would be named"): + move_sub_schemas_to_defs( + source_root / "schema.json", {"$ref": "file://collision_sub.json"}, sub_schemas, sub_schema_refs + ) def test_sets_additionalProperties_false_for_objects_where_unspecified(): @@ -158,11 +240,31 @@ def test_constructs_merged_schema(): destination_schema_contents = json.loads(destination_schema.read_text(encoding="UTF-8")) - # Property directly in the referenced - assert "presentDirectly" in destination_schema_contents["properties"] - assert destination_schema_contents["properties"]["presentDirectly"]["type"] == "object" + # Property directly in the source schema + assert destination_schema_contents["properties"]["presentDirectly"] == { + "type": "object", + "additionalProperties": False, + } - assert "merged" in destination_schema_contents["properties"] - assert "type" in destination_schema_contents["properties"]["merged"] - assert destination_schema_contents["properties"]["merged"]["type"] == "object" - assert "properties" in destination_schema_contents["properties"]["merged"] + # The referenced sub-schema is referenced through an internal $ref + assert destination_schema_contents["properties"]["merged"] == {"$ref": "#/$defs/sub_schema1"} + assert destination_schema_contents["$defs"]["sub_schema1"]["properties"].keys() == set(["first", "second"]) + # Objects in $defs also have additionalProperties defaulted to false + assert destination_schema_contents["$defs"]["sub_schema1"]["additionalProperties"] is False + + +def test_constructs_schema_storing_repeated_sub_schemas_once(): + with tempfile.TemporaryDirectory() as destination_folder: + source_schema = Path(__file__).parent / "testdata" / "schema_construction" / "schema_with_repeated_refs.json" + destination_schema = Path(destination_folder) / "values.schema.json" + + construct_helm_schema(source_schema, destination_schema) + + destination_schema_contents = json.loads(destination_schema.read_text(encoding="UTF-8")) + + assert destination_schema_contents["properties"]["first"] == {"$ref": "#/$defs/sub_schema2"} + assert destination_schema_contents["properties"]["second"] == {"$ref": "#/$defs/sub_schema2"} + assert destination_schema_contents["$defs"]["sub_schema2"]["properties"]["nested"] == { + "$ref": "#/$defs/sub_schema1" + } + assert list(destination_schema_contents["$defs"].keys()) == ["sub_schema2", "sub_schema1"] diff --git a/scripts/testdata/schema_construction/collision/sub.json b/scripts/testdata/schema_construction/collision/sub.json new file mode 100644 index 00000000..e6307dc1 --- /dev/null +++ b/scripts/testdata/schema_construction/collision/sub.json @@ -0,0 +1,3 @@ +{ + "type": "object" +} diff --git a/scripts/testdata/schema_construction/collision_sub.json b/scripts/testdata/schema_construction/collision_sub.json new file mode 100644 index 00000000..e6307dc1 --- /dev/null +++ b/scripts/testdata/schema_construction/collision_sub.json @@ -0,0 +1,3 @@ +{ + "type": "object" +} diff --git a/scripts/testdata/schema_construction/schema_with_repeated_refs.json b/scripts/testdata/schema_construction/schema_with_repeated_refs.json new file mode 100644 index 00000000..09e0c5d9 --- /dev/null +++ b/scripts/testdata/schema_construction/schema_with_repeated_refs.json @@ -0,0 +1,13 @@ +{ + "$id": "file://matrix-stack/charts/schema_with_repeated_refs", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "first": { + "$ref": "file://sub_schema2.json" + }, + "second": { + "$ref": "file://sub_schema2.json" + } + } +} diff --git a/scripts/testdata/schema_construction/sub_schema2.json b/scripts/testdata/schema_construction/sub_schema2.json new file mode 100644 index 00000000..a546140a --- /dev/null +++ b/scripts/testdata/schema_construction/sub_schema2.json @@ -0,0 +1,10 @@ +{ + "$id": "file://sub_schema2", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "nested": { + "$ref": "file://sub_schema1.json" + } + } +}