You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/03/01 14:34:51 UTC

[camel-k] 12/18: chore: update to v1alpha1.Template

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

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

commit 483eea05163cc1eafe5fe13eb47b1ea4c412eb4e
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Feb 3 12:59:05 2022 +0100

    chore: update to v1alpha1.Template
---
 e2e/support/test_support.go | 4 ++--
 pkg/trait/kamelets_test.go  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go
index fce51b8..71a671b 100644
--- a/e2e/support/test_support.go
+++ b/e2e/support/test_support.go
@@ -1588,12 +1588,12 @@ func BindKameletToWithErrorHandler(ns string, name string, from corev1.ObjectRef
 	}
 }
 
-func asTemplate(source map[string]interface{}) *v1.Template {
+func asTemplate(source map[string]interface{}) *v1alpha1.Template {
 	bytes, err := json.Marshal(source)
 	if err != nil {
 		panic(err)
 	}
-	return &v1.Template{
+	return &v1alpha1.Template{
 		RawMessage: bytes,
 	}
 }
diff --git a/pkg/trait/kamelets_test.go b/pkg/trait/kamelets_test.go
index 78e36d5..9a7737b 100644
--- a/pkg/trait/kamelets_test.go
+++ b/pkg/trait/kamelets_test.go
@@ -571,11 +571,11 @@ func createKameletsTestEnvironment(flow string, objects ...runtime.Object) (*kam
 	return trait, environment
 }
 
-func templateOrFail(template map[string]interface{}) *v1.Template {
+func templateOrFail(template map[string]interface{}) *v1alpha1.Template {
 	data, err := json.Marshal(template)
 	if err != nil {
 		panic(err)
 	}
-	t := v1.Template{RawMessage: data}
+	t := v1alpha1.Template{RawMessage: data}
 	return &t
 }