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 2021/04/06 08:13:40 UTC
[camel-k] 02/02: fix: SinkBinding should be managed when the
Integration is running
This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 4d01ed06b261457dff3bef44da562db476113087
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Fri Apr 2 16:40:46 2021 +0200
fix: SinkBinding should be managed when the Integration is running
---
pkg/trait/knative.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/trait/knative.go b/pkg/trait/knative.go
index b8499c3..8e81f90 100644
--- a/pkg/trait/knative.go
+++ b/pkg/trait/knative.go
@@ -513,7 +513,7 @@ func (t *knativeTrait) configureSinkBinding(e *Environment, env *knativeapi.Came
e.ApplicationProperties["camel.k.customizer.sinkbinding.kind"] = ref.Kind
e.ApplicationProperties["camel.k.customizer.sinkbinding.api-version"] = ref.APIVersion
- if e.IntegrationInPhase(v1.IntegrationPhaseDeploying) {
+ if e.IntegrationInPhase(v1.IntegrationPhaseDeploying, v1.IntegrationPhaseRunning) {
e.PostStepProcessors = append(e.PostStepProcessors, func(e *Environment) error {
sinkBindingInjected := false
e.Resources.Visit(func(object runtime.Object) {