You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2022/08/22 10:52:41 UTC

[camel-k] 11/13: fix(e2e): Patch Knative eventing sugar ConfigMap

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit a3b59723e62e1f54be6baca24348939e81b98545
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Fri Aug 19 10:21:43 2022 +0200

    fix(e2e): Patch Knative eventing sugar ConfigMap
---
 .github/actions/kamel-install-knative/install-knative.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.github/actions/kamel-install-knative/install-knative.sh b/.github/actions/kamel-install-knative/install-knative.sh
index 7ea1a1302..8434afc94 100755
--- a/.github/actions/kamel-install-knative/install-knative.sh
+++ b/.github/actions/kamel-install-knative/install-knative.sh
@@ -121,6 +121,18 @@ else
   exit 1
 fi
 
+# Eventing sugar controller configuration
+echo "Patching Knative eventing configuration"
+kubectl patch configmap/config-sugar \
+  -n knative-eventing \
+  --type merge \
+  -p '{"data":{"namespace-selector":"{\"matchExpressions\":[{\"key\":\"eventing.knative.dev/injection\",\"operator\":\"In\",\"values\":[\"enabled\"]}]}"}}'
+
+kubectl patch configmap/config-sugar \
+  -n knative-eventing \
+  --type merge \
+  -p '{"data":{"trigger-selector":"{\"matchExpressions\":[{\"key\":\"eventing.knative.dev/injection\",\"operator\":\"In\",\"values\":[\"enabled\"]}]}"}}'
+
 # Wait for installation completed
 echo "Waiting for all pods to be ready in kourier-system"
 kubectl wait --for=condition=Ready pod --all -n kourier-system --timeout=60s