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 2019/11/28 07:41:04 UTC
[camel-k] 04/13: fix: Add missing labels to route resources
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 c4c00d6fd1ded169f144c4b1f31e9ee3413a9187
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Tue Nov 26 09:38:57 2019 +0100
fix: Add missing labels to route resources
---
pkg/trait/route.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pkg/trait/route.go b/pkg/trait/route.go
index 1109c02..7ca59e1 100644
--- a/pkg/trait/route.go
+++ b/pkg/trait/route.go
@@ -121,6 +121,9 @@ func (t *routeTrait) Apply(e *Environment) error {
ObjectMeta: metav1.ObjectMeta{
Name: t.service.Name,
Namespace: t.service.Namespace,
+ Labels: map[string]string{
+ "camel.apache.org/integration": e.Integration.Name,
+ },
},
Spec: routev1.RouteSpec{
Port: &routev1.RoutePort{