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

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

commit 2ea63212b43c2bdabe2ed9c2cc3a057377c8d47e
Author: Nicola Ferraro <ni.ferr...@gmail.com>
AuthorDate: Fri Feb 21 11:46:13 2020 +0100

    Fix #1199: fix lint
---
 pkg/cmd/operator/operator.go            | 1 +
 pkg/controller/integration/build_kit.go | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/pkg/cmd/operator/operator.go b/pkg/cmd/operator/operator.go
index 1347e1d..6f43b16 100644
--- a/pkg/cmd/operator/operator.go
+++ b/pkg/cmd/operator/operator.go
@@ -114,6 +114,7 @@ func Run() {
 
        // Configure event broadcaster
        var eventBroadcaster record.EventBroadcaster
+       // nolint: gocritic
        if ok, err := kubernetes.CheckPermission(c, corev1.GroupName, "events", 
namespace, "", "create"); err != nil {
                log.Error(err, "cannot check permissions for configuring event 
broadcaster")
        } else if !ok {
diff --git a/pkg/controller/integration/build_kit.go 
b/pkg/controller/integration/build_kit.go
index 61c8c3f..a3e4fe6 100644
--- a/pkg/controller/integration/build_kit.go
+++ b/pkg/controller/integration/build_kit.go
@@ -111,8 +111,8 @@ func (action *buildKitAction) Handle(ctx context.Context, 
integration *v1.Integr
                "camel.apache.org/created.by.kind":    v1.IntegrationKind,
                "camel.apache.org/created.by.name":    integration.Name,
                "camel.apache.org/created.by.version": 
integration.ResourceVersion,
-               "camel.apache.org/runtime.version":        
integration.Status.RuntimeVersion,
-               "camel.apache.org/runtime.provider":       
string(integration.Status.RuntimeProvider),
+               "camel.apache.org/runtime.version":    
integration.Status.RuntimeVersion,
+               "camel.apache.org/runtime.provider":   
string(integration.Status.RuntimeProvider),
        }
 
        // Set the kit to have the same characteristics as the integrations

Reply via email to