This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 381ed0d53 Revisit final operator install message
381ed0d53 is described below
commit 381ed0d538aaa2b75381cb0a38385fb2b917faed
Author: Thomas Diesler <[email protected]>
AuthorDate: Wed Jun 12 11:01:00 2024 +0200
Revisit final operator install message
---
pkg/cmd/install.go | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/pkg/cmd/install.go b/pkg/cmd/install.go
index 6f83133c4..c1ca3d945 100644
--- a/pkg/cmd/install.go
+++ b/pkg/cmd/install.go
@@ -375,15 +375,14 @@ func (o *installCmdOptions) installOperator(cmd
*cobra.Command, output *kubernet
}
}
- strategy := ""
+ message := "Camel K installed in namespace " + namespace
if olm {
- strategy = "via OLM subscription"
+ message += " via OLM subscription"
}
if o.Global {
- fmt.Fprintln(cmd.OutOrStdout(), "Camel K installed in
namespace", namespace, strategy, "(global mode)")
- } else {
- fmt.Fprintln(cmd.OutOrStdout(), "Camel K installed in
namespace", namespace, strategy)
+ message += " (global mode)"
}
+ fmt.Fprintln(cmd.OutOrStdout(), message)
return nil
}