diff --git a/charts/matrix-stack/ci/fragments/synapse-all-workers-running.yaml b/charts/matrix-stack/ci/fragments/synapse-all-workers-running.yaml index 840b8489..c30d3bc1 100644 --- a/charts/matrix-stack/ci/fragments/synapse-all-workers-running.yaml +++ b/charts/matrix-stack/ci/fragments/synapse-all-workers-running.yaml @@ -17,6 +17,8 @@ synapse: event-persister: enabled: true replicas: 2 + federation-inbound: + enabled: true federation-reader: enabled: true federation-sender: diff --git a/charts/matrix-stack/ci/synapse-worker-example-values.yaml b/charts/matrix-stack/ci/synapse-worker-example-values.yaml index b4d05b2e..fcad7a11 100644 --- a/charts/matrix-stack/ci/synapse-worker-example-values.yaml +++ b/charts/matrix-stack/ci/synapse-worker-example-values.yaml @@ -30,6 +30,8 @@ synapse: event-persister: enabled: true replicas: 2 + federation-inbound: + enabled: true federation-reader: enabled: true federation-sender: diff --git a/charts/matrix-stack/source/synapse.json b/charts/matrix-stack/source/synapse.json index ce9145e5..4695cfe3 100644 --- a/charts/matrix-stack/source/synapse.json +++ b/charts/matrix-stack/source/synapse.json @@ -193,6 +193,9 @@ "event-persister": { "$ref": "file://synapse/scalable_worker.json" }, + "federation-inbound": { + "$ref": "file://synapse/scalable_worker.json" + }, "federation-reader": { "$ref": "file://synapse/scalable_worker.json" }, diff --git a/charts/matrix-stack/source/synapse.yaml.j2 b/charts/matrix-stack/source/synapse.yaml.j2 index 82b8d26f..fc3260f5 100644 --- a/charts/matrix-stack/source/synapse.yaml.j2 +++ b/charts/matrix-stack/source/synapse.yaml.j2 @@ -57,6 +57,7 @@ workers: {{- synapse_sub_schema_values.single_worker('encryption') | indent(2) }} {{- synapse_sub_schema_values.scalable_worker('event-creator') | indent(2) }} {{- synapse_sub_schema_values.scalable_worker('event-persister') | indent(2) }} +{{- synapse_sub_schema_values.scalable_worker('federation-inbound') | indent(2) }} {{- synapse_sub_schema_values.scalable_worker('federation-reader') | indent(2) }} {{- synapse_sub_schema_values.scalable_worker('federation-sender') | indent(2) }} {{- synapse_sub_schema_values.scalable_worker('initial-synchrotron') | indent(2) }} diff --git a/charts/matrix-stack/values.schema.json b/charts/matrix-stack/values.schema.json index def2db88..fae3509d 100644 --- a/charts/matrix-stack/values.schema.json +++ b/charts/matrix-stack/values.schema.json @@ -4940,6 +4940,159 @@ "type": "object", "additionalProperties": false }, + "federation-inbound": { + "required": [ + "replicas" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "replicas": { + "type": "integer", + "minimum": 1 + }, + "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 + } + } + }, + "type": "object", + "additionalProperties": false + }, "federation-reader": { "required": [ "replicas" diff --git a/charts/matrix-stack/values.yaml b/charts/matrix-stack/values.yaml index 942c4555..6aca3538 100644 --- a/charts/matrix-stack/values.yaml +++ b/charts/matrix-stack/values.yaml @@ -1812,6 +1812,16 @@ synapse: ## The number of replicas of this worker to run replicas: 1 + ## Resources for this worker. + ## If omitted the global Synapse resources are used + # resources: {} + federation-inbound: + ## Set to true to deploy this worker + enabled: false + + ## The number of replicas of this worker to run + replicas: 1 + ## Resources for this worker. ## If omitted the global Synapse resources are used # resources: {} diff --git a/newsfragments/404.fixed.md b/newsfragments/404.fixed.md new file mode 100644 index 00000000..e3536d19 --- /dev/null +++ b/newsfragments/404.fixed.md @@ -0,0 +1 @@ +Synapse: Fix missing `federation-inbound` worker from values schema.