From a2efde54ea3526817c7c03fc197e27d7bd174afe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Goinvic?= Date: Fri, 23 Jan 2026 15:26:30 +0100 Subject: [PATCH] hookshot: enable widgets in rooms where its invited by default --- .../{config.yaml.tpl => config-override.yaml.tpl} | 0 .../configs/hookshot/config-underride.yaml.tpl | 15 +++++++++++++++ .../matrix-stack/templates/hookshot/_helpers.tpl | 6 ++++-- .../templates/hookshot/hookshot_statefulset.yaml | 4 ++-- newsfragments/997.changed.md | 1 + 5 files changed, 22 insertions(+), 4 deletions(-) rename charts/matrix-stack/configs/hookshot/{config.yaml.tpl => config-override.yaml.tpl} (100%) create mode 100644 charts/matrix-stack/configs/hookshot/config-underride.yaml.tpl create mode 100644 newsfragments/997.changed.md diff --git a/charts/matrix-stack/configs/hookshot/config.yaml.tpl b/charts/matrix-stack/configs/hookshot/config-override.yaml.tpl similarity index 100% rename from charts/matrix-stack/configs/hookshot/config.yaml.tpl rename to charts/matrix-stack/configs/hookshot/config-override.yaml.tpl diff --git a/charts/matrix-stack/configs/hookshot/config-underride.yaml.tpl b/charts/matrix-stack/configs/hookshot/config-underride.yaml.tpl new file mode 100644 index 00000000..51ce0217 --- /dev/null +++ b/charts/matrix-stack/configs/hookshot/config-underride.yaml.tpl @@ -0,0 +1,15 @@ +{{- /* +Copyright 2026 Element Creations Ltd + +SPDX-License-Identifier: AGPL-3.0-only +*/ -}} + +{{- $root := .root }} +{{- with required "hookshot/config-overrides.yaml.tpl missing context" .context }} +{{- $context := . -}} + +widgets: + roomSetupWidget: + addOnInvite: true + +{{- end -}} diff --git a/charts/matrix-stack/templates/hookshot/_helpers.tpl b/charts/matrix-stack/templates/hookshot/_helpers.tpl index 5ef26656..a979ef7c 100644 --- a/charts/matrix-stack/templates/hookshot/_helpers.tpl +++ b/charts/matrix-stack/templates/hookshot/_helpers.tpl @@ -97,8 +97,10 @@ env: [] {{- define "element-io.hookshot.configmap-data" }} {{- $root := .root -}} {{- with required "element-io.hookshot.configmap-data" .context -}} -config.yaml: | -{{- (tpl ($root.Files.Get "configs/hookshot/config.yaml.tpl") (dict "root" $root "context" .)) | nindent 2 }} +config-underride.yaml: | +{{- (tpl ($root.Files.Get "configs/hookshot/config-underride.yaml.tpl") (dict "root" $root "context" .)) | nindent 2 }} +config-override.yaml: | +{{- (tpl ($root.Files.Get "configs/hookshot/config-override.yaml.tpl") (dict "root" $root "context" .)) | nindent 2 }} {{- end -}} {{- end -}} diff --git a/charts/matrix-stack/templates/hookshot/hookshot_statefulset.yaml b/charts/matrix-stack/templates/hookshot/hookshot_statefulset.yaml index 5abea916..2943d40f 100644 --- a/charts/matrix-stack/templates/hookshot/hookshot_statefulset.yaml +++ b/charts/matrix-stack/templates/hookshot/hookshot_statefulset.yaml @@ -47,8 +47,8 @@ spec: (dict "additionalPath" "hookshot.additional" "nameSuffix" "hookshot" "containerName" "render-config" - "underrides" list - "overrides" (list "config.yaml") + "underrides" (list "config-underride.yaml") + "overrides" (list "config-override.yaml") "outputFile" "hookshot-config.yaml" "resources" .resources "containersSecurityContext" .containersSecurityContext diff --git a/newsfragments/997.changed.md b/newsfragments/997.changed.md new file mode 100644 index 00000000..b2383317 --- /dev/null +++ b/newsfragments/997.changed.md @@ -0,0 +1 @@ +Hookshot: Enable adding widgets in rooms where it is invited by default.