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

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

commit 2765506d97646976f0f84d65589aaa51ff389b2e
Author: nicolaferraro <[email protected]>
AuthorDate: Thu Oct 7 16:37:45 2021 +0200

    chore: avoid propagating the icon to integration and sub-resources
---
 pkg/controller/kameletbinding/common.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pkg/controller/kameletbinding/common.go 
b/pkg/controller/kameletbinding/common.go
index 2264011..ce219d8 100644
--- a/pkg/controller/kameletbinding/common.go
+++ b/pkg/controller/kameletbinding/common.go
@@ -42,11 +42,14 @@ var endpointTypeSinkContext = 
bindings.EndpointContext{Type: v1alpha1.EndpointTy
 func createIntegrationFor(ctx context.Context, c client.Client, kameletbinding 
*v1alpha1.KameletBinding) (*v1.Integration, error) {
        controller := true
        blockOwnerDeletion := true
+       annotations := util.CopyMap(kameletbinding.Annotations)
+       delete(annotations, v1alpha1.AnnotationIcon) // avoid propagating the 
icon to the integration as it's heavyweight and not needed
+
        it := v1.Integration{
                ObjectMeta: metav1.ObjectMeta{
                        Namespace:   kameletbinding.Namespace,
                        Name:        kameletbinding.Name,
-                       Annotations: util.CopyMap(kameletbinding.Annotations),
+                       Annotations: annotations,
                        Labels:      util.CopyMap(kameletbinding.Labels),
                        OwnerReferences: []metav1.OwnerReference{
                                {

Reply via email to