diff --git a/pkg/controller/integration/integration_controller.go b/pkg/controller/integration/integration_controller.go index 77ef05e507..612d306758 100644 --- a/pkg/controller/integration/integration_controller.go +++ b/pkg/controller/integration/integration_controller.go @@ -435,9 +435,9 @@ func watchKnativeResources(ctx context.Context, c client.Client, b *builder.Buil return err } if !ok { - log.Info(`KnativeService resources are not installed in the cluster. You can't use Knative features. If you install Knative Serving resources after the - Camel K operator, make sure to apply the required RBAC privileges and restart the Camel K Operator Pod to be able to watch for - Camel K managed Knative Services.`) + log.Info("KnativeService resources are not installed in the cluster. You can't use Knative serving features. " + + "If you install Knative Serving resources after the Camel K operator, make sure to apply the required RBAC privileges " + + "and restart the Camel K Operator Pod to be able to watch for Camel K managed Knative Services.") return nil } @@ -448,11 +448,12 @@ func watchKnativeResources(ctx context.Context, c client.Client, b *builder.Buil if ok, err = kubernetes.CheckSelfPermission(checkCtx, c, serving.GroupName, "services", platform.GetOperatorWatchNamespace(), "", "watch"); err != nil { return err } else if ok { - log.Info("KnativeService resources installed in the cluster. RBAC privileges assigned correctly, you can use Knative features.") + log.Info("KnativeService resources installed in the cluster. RBAC privileges assigned correctly, you can use Knative serving features.") b.Owns(&servingv1.Service{}, builder.WithPredicates(StatusChangedPredicate{})) } else { - log.Info(` KnativeService resources installed in the cluster. However Camel K operator has not the required RBAC privileges. You can't use Knative features. - Make sure to apply the required RBAC privileges and restart the Camel K Operator Pod to be able to watch for Camel K managed Knative Services.`) + log.Info("KnativeService resources installed in the cluster. However Camel K operator has not the required RBAC privileges. " + + "You can't use Knative features.Make sure to apply the required RBAC privileges and restart the Camel K Operator Pod to be able " + + "to watch for Camel K managed Knative Services.") } return nil diff --git a/pkg/resources/config/rbac/descoped/operator-cluster-role-knative.yaml b/pkg/resources/config/rbac/descoped/operator-cluster-role-knative.yaml index f25ccc8d1c..4130af3e7d 100644 --- a/pkg/resources/config/rbac/descoped/operator-cluster-role-knative.yaml +++ b/pkg/resources/config/rbac/descoped/operator-cluster-role-knative.yaml @@ -33,8 +33,7 @@ rules: - get - list - patch - # - update - # - watch + - watch - apiGroups: - eventing.knative.dev resources: @@ -46,7 +45,6 @@ rules: - get - list - patch - # - update - apiGroups: - messaging.knative.dev resources: diff --git a/pkg/resources/config/rbac/namespaced/operator-role-knative.yaml b/pkg/resources/config/rbac/namespaced/operator-role-knative.yaml index 02ef24268e..e2c5f73319 100644 --- a/pkg/resources/config/rbac/namespaced/operator-role-knative.yaml +++ b/pkg/resources/config/rbac/namespaced/operator-role-knative.yaml @@ -33,6 +33,7 @@ rules: - get - list - patch + - watch - apiGroups: - eventing.knative.dev resources: