Skip to content

Commit

Permalink
Fix apache#1199: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Feb 21, 2020
1 parent d656558 commit e20049b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/controller/integration/build_kit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e20049b

Please sign in to comment.