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:01 UTC
[camel-k] 01/13: chore: Migrate from OpenShift deprecated API
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 231b1098ba1edd61bd489cc8af909775d4f700bf
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Fri Nov 22 13:37:50 2019 +0100
chore: Migrate from OpenShift deprecated API
---
pkg/trait/route.go | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/pkg/trait/route.go b/pkg/trait/route.go
index adc8c37..6a0fd18 100644
--- a/pkg/trait/route.go
+++ b/pkg/trait/route.go
@@ -21,12 +21,13 @@ import (
"fmt"
"reflect"
- "github.com/apache/camel-k/pkg/apis/camel/v1alpha1"
-
- routev1 "github.com/openshift/api/route/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
+
+ routev1 "github.com/openshift/api/route/v1"
+
+ "github.com/apache/camel-k/pkg/apis/camel/v1alpha1"
)
// The Route trait can be used to configure the creation of OpenShift routes for the integration.
@@ -115,7 +116,7 @@ func (t *routeTrait) Apply(e *Environment) error {
route := routev1.Route{
TypeMeta: metav1.TypeMeta{
Kind: "Route",
- APIVersion: routev1.SchemeGroupVersion.String(),
+ APIVersion: routev1.GroupVersion.String(),
},
ObjectMeta: metav1.ObjectMeta{
Name: t.service.Name,