From aa88d1c906bb2e62125800e74cda596ad70b689d Mon Sep 17 00:00:00 2001 From: Ben Banfield-Zanin Date: Wed, 5 Mar 2025 09:06:39 +0000 Subject: [PATCH] Fix incorrect missing context error messages for some configuration files --- charts/matrix-stack/configs/haproxy/haproxy.cfg.tpl | 2 +- .../configs/matrix-authentication-service/config.yaml.tpl | 2 +- charts/matrix-stack/configs/synapse/partial-haproxy.cfg.tpl | 2 +- charts/matrix-stack/configs/well-known/partial-haproxy.cfg.tpl | 2 +- newsfragments/250.fixed.md | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 newsfragments/250.fixed.md diff --git a/charts/matrix-stack/configs/haproxy/haproxy.cfg.tpl b/charts/matrix-stack/configs/haproxy/haproxy.cfg.tpl index 84e66579..5cbf980c 100644 --- a/charts/matrix-stack/configs/haproxy/haproxy.cfg.tpl +++ b/charts/matrix-stack/configs/haproxy/haproxy.cfg.tpl @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial */ -}} {{- $root := .root -}} -{{- with required "haproxy.cfg.tpl missing context" .context -}} +{{- with required "haproxy/haproxy.cfg.tpl missing context" .context -}} global maxconn 40000 diff --git a/charts/matrix-stack/configs/matrix-authentication-service/config.yaml.tpl b/charts/matrix-stack/configs/matrix-authentication-service/config.yaml.tpl index 2d0a1e60..3da4dce3 100644 --- a/charts/matrix-stack/configs/matrix-authentication-service/config.yaml.tpl +++ b/charts/matrix-stack/configs/matrix-authentication-service/config.yaml.tpl @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial */ -}} {{- $root := .root }} -{{- with required "config.yaml missing context" .context }} +{{- with required "matrix-authentication-service/config.yaml.tpl missing context" .context }} http: public_base: "https://{{ tpl .ingress.host $root }}" diff --git a/charts/matrix-stack/configs/synapse/partial-haproxy.cfg.tpl b/charts/matrix-stack/configs/synapse/partial-haproxy.cfg.tpl index 06839e90..7c9ff92b 100644 --- a/charts/matrix-stack/configs/synapse/partial-haproxy.cfg.tpl +++ b/charts/matrix-stack/configs/synapse/partial-haproxy.cfg.tpl @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial */ -}} {{- $root := .root -}} -{{- with required "haproxy.cfg.tpl missing context" .context -}} +{{- with required "synapse/partial-haproxy.cfg.tpl missing context" .context -}} frontend startup bind *:8406 diff --git a/charts/matrix-stack/configs/well-known/partial-haproxy.cfg.tpl b/charts/matrix-stack/configs/well-known/partial-haproxy.cfg.tpl index 1797a8ea..b2636101 100644 --- a/charts/matrix-stack/configs/well-known/partial-haproxy.cfg.tpl +++ b/charts/matrix-stack/configs/well-known/partial-haproxy.cfg.tpl @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial */ -}} {{- $root := .root -}} -{{- with required "haproxy.cfg.tpl missing context" .context -}} +{{- with required "well-known/partial-haproxy.cfg.tpl missing context" .context -}} frontend well-known-in bind *:8010 diff --git a/newsfragments/250.fixed.md b/newsfragments/250.fixed.md new file mode 100644 index 00000000..d22d5150 --- /dev/null +++ b/newsfragments/250.fixed.md @@ -0,0 +1 @@ +Fix incorrect missing context error messages from some configuration files.