From 2c5f3153e2e263e4445747bf473f42e155312488 Mon Sep 17 00:00:00 2001 From: Ryan Terry Date: Wed, 16 Aug 2023 17:43:24 -0600 Subject: [PATCH] Add support for webhook options in helm template Issue: #1195 --- helm/botkube/templates/persistent-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helm/botkube/templates/persistent-config.yaml b/helm/botkube/templates/persistent-config.yaml index bb5f6ceb56..88e82ad506 100644 --- a/helm/botkube/templates/persistent-config.yaml +++ b/helm/botkube/templates/persistent-config.yaml @@ -56,6 +56,17 @@ data: {{ toYaml . | nindent 14 }} {{- end -}} {{- end }} + {{- if (eq $commPlatformName "webhook") }} + {{ $commPlatformName }}: + enabled: {{ $commPlatform.enabled | default nil }} + url: {{ $commPlatform.url | default "" }} + bindings: + {{- $bindings := $commPlatform.bindings | default nil }} + sources: + {{- with $bindings.sources -}} + {{ toYaml . | nindent 14 }} + {{- end -}} + {{- end }} {{- end }} {{- end }} ---