You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/03/16 09:21:23 UTC

[camel-k] branch master updated: fix(cli): install error message

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8f3e0fb  fix(cli): install error message
8f3e0fb is described below

commit 8f3e0fb0d495d17adb7d01a7422307cc46b60a63
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu Mar 11 14:57:57 2021 +0100

    fix(cli): install error message
    
    Printing an error message telling the user OLM is not available if that was selected during installation
    
    Fixes #2105
---
 pkg/cmd/install.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go
index 9728ffc..a116c50 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -209,6 +209,8 @@ func (o *installCmdOptions) install(cobraCmd *cobra.Command, _ []string) error {
 					"You can either ask your administrator to provide permissions (preferred) or run the install command with the `--olm=false` flag.")
 				os.Exit(1)
 			}
+		} else {
+			fmt.Fprintln(cobraCmd.OutOrStdout(), "OLM is not available in the cluster. Fallback to regular installation.")
 		}
 
 		if installViaOLM {