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
The following commit(s) were added to refs/heads/main by this push:
new adad10ac3 chore: deprecate bind funcs
adad10ac3 is described below
commit adad10ac364d925f4e596c9b8a75e19c28b045bb
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Thu Dec 15 12:08:05 2022 +0100
chore: deprecate bind funcs
---
e2e/support/test_support.go | 10 ++++++++++
pkg/resources/resources.go | 8 ++++++++
2 files changed, 18 insertions(+)
diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go
index 576f2b039..973e54c98 100644
--- a/e2e/support/test_support.go
+++ b/e2e/support/test_support.go
@@ -2002,11 +2002,15 @@ func CreateTimerKamelet(ns string, name string) func()
error {
return CreateKamelet(ns, name, flow, props, nil)
}
+// Deprecated:
+// Use KamelBind func instead
func BindKameletTo(ns, name string, annotations map[string]string, from, to
corev1.ObjectReference,
sourceProperties, sinkProperties map[string]string) func() error {
return BindKameletToWithErrorHandler(ns, name, annotations, from, to,
sourceProperties, sinkProperties, nil)
}
+// Deprecated:
+// Use KamelBind func instead
func BindKameletToWithErrorHandler(ns, name string, annotations
map[string]string, from, to corev1.ObjectReference,
sourceProperties, sinkProperties map[string]string, errorHandler
map[string]interface{}) func() error {
return func() error {
@@ -2030,6 +2034,8 @@ func BindKameletToWithErrorHandler(ns, name string,
annotations map[string]strin
}
}
+// Deprecated:
+// Use KamelBind func instead
func asTemplate(source map[string]interface{}) *v1alpha1.Template {
bytes, err := json.Marshal(source)
if err != nil {
@@ -2040,6 +2046,8 @@ func asTemplate(source map[string]interface{})
*v1alpha1.Template {
}
}
+// Deprecated:
+// Use KamelBind func instead
func asErrorHandlerSpec(source map[string]interface{})
*v1alpha1.ErrorHandlerSpec {
bytes, err := json.Marshal(source)
if err != nil {
@@ -2050,6 +2058,8 @@ func asErrorHandlerSpec(source map[string]interface{})
*v1alpha1.ErrorHandlerSpe
}
}
+// Deprecated:
+// Use KamelBind func instead
func asEndpointProperties(props map[string]string)
*v1alpha1.EndpointProperties {
bytes, err := json.Marshal(props)
if err != nil {
diff --git a/pkg/resources/resources.go b/pkg/resources/resources.go
index 8b4b6cfc6..3bf4b71c3 100644
--- a/pkg/resources/resources.go
+++ b/pkg/resources/resources.go
@@ -188,6 +188,13 @@ var assets = func() http.FileSystem {
compressedContent:
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\x4d\x6f\xeb\x38\x0c\xbc\xeb\x57\x0c\xe2\x4b\x0b\xe4\x63\x77\x8f\xd9\x93\xb7\x4d\xb0\xc6\x16\x49\x51\xa7\x5b\xf4\xc8\xd8\x8c\x4d\x54\x96\xf4\x24\xb9\x6e\xfe\xfd\x83\x9c\xa4\x1f\x78\x78\xb7\xf2\x64\x4b\xd4\x70\x86\x43\x66\x98\x7d\x5f\xa8\x0c\x77\x52\xb1\x09\x5c\x23\x5a\xc4\x96\x91\x3b\xaa\x5a\x46\x69\x0f\x71\x20\xcf\x58\xdb\xde\xd4\x14\xc5\x1a\x5c\xe5\xe5\xfa\x1a\xbd\xa9\xd9\xc3\x1a\x86\xf5\xe8\xac\x67\x95\xa1\x
[...]
},
+ "/manager/patch-install-default-kamelets.yaml":
&vfsgen۰CompressedFileInfo{
+ name: "patch-install-default-kamelets.yaml",
+ modTime: time.Time{},
+ uncompressedSize: 1065,
+
+ compressedContent:
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\xcd\x6e\xa3\x3c\x14\xdd\xfb\x29\x8e\xc2\xa6\x95\x92\x50\x7d\xcb\x7c\x2b\xa6\x25\x1a\xd4\x0c\x91\x0a\x9d\xaa\xab\xca\x81\x0b\x5c\x0d\xd8\x1e\xdb\x94\xe6\xed\x47\x26\xc9\xb4\xd5\x6c\xeb\x9d\xe1\xfa\xfc\xf8\x1c\x47\x58\x7d\xdd\x12\x11\x76\x5c\x91\x72\x54\xc3\x6b\xf8\x8e\x90\x18\x59\x75\x84\x42\x37\x7e\x92\x96\xb0\xd5\xa3\xaa\xa5\x67\xad\x70\x95\x14\xdb\x6b\x8c\xaa\x26\x0b\xad\x08\xda\x62\xd0\x96\x44\x84\x4a\x2b\x
[...]
+ },
"/manager/patch-log-level.yaml": &vfsgen۰CompressedFileInfo{
name: "patch-log-level.yaml",
modTime: time.Time{},
@@ -653,6 +660,7 @@ var assets = func() http.FileSystem {
fs["/manager/operator-deployment.yaml"].(os.FileInfo),
fs["/manager/operator-service-account.yaml"].(os.FileInfo),
fs["/manager/patch-image-pull-policy-always.yaml"].(os.FileInfo),
+
fs["/manager/patch-install-default-kamelets.yaml"].(os.FileInfo),
fs["/manager/patch-log-level.yaml"].(os.FileInfo),
fs["/manager/patch-node-selector.yaml"].(os.FileInfo),
fs["/manager/patch-ports.yaml"].(os.FileInfo),