You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ts...@apache.org on 2021/10/05 12:33:05 UTC
[camel-k] 01/02: fix(cli): kamel install fails with error: Object
'Kind' is missing in 'null'
This is an automated email from the ASF dual-hosted git repository.
tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 563399c0e64adc2cf2f7454a42acb78df86a06f8
Author: Tadayoshi Sato <sa...@gmail.com>
AuthorDate: Tue Oct 5 16:21:01 2021 +0900
fix(cli): kamel install fails with error: Object 'Kind' is missing in 'null'
Fix #2674
---
pkg/install/operator.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/install/operator.go b/pkg/install/operator.go
index 656eba6..c8ea505 100644
--- a/pkg/install/operator.go
+++ b/pkg/install/operator.go
@@ -224,7 +224,7 @@ func OperatorOrCollect(ctx context.Context, c client.Client, cfg OperatorConfigu
if err := installOpenShiftRoles(ctx, c, cfg.Namespace, customizer, collection, force); err != nil {
return err
}
- if err := installClusterRoleBinding(ctx, c, collection, cfg.Namespace, "camel-k-operator-console-openshift", "/rbac/operator-cluster-role-console-binding-openshift.yaml"); err != nil {
+ if err := installClusterRoleBinding(ctx, c, collection, cfg.Namespace, "camel-k-operator-console-openshift", "/rbac/openshift/operator-cluster-role-console-binding-openshift.yaml"); err != nil {
if k8serrors.IsForbidden(err) {
fmt.Println("Warning: the operator will not be able to manage ConsoleCLIDownload resources. Try installing the operator as cluster-admin.")
} else {