cli/cmd/component-install: inform user that we install the component
As new InstallAsRelease does not list what objects are being created and
we should provide at least minimal feedback to the user.
@@ -52,6 +52,8 @@ func runInstall(cmd *cobra.Command, args []string) {
func installComponents(lokoConfig *config.Config, kubeconfig string, componentNames ...string) error {
for _, componentName := range componentNames {
+ fmt.Printf("Installing component '%s'...\n", componentName)
+
component, err := components.Get(componentName)
if err != nil {
return err
@@ -67,6 +69,8 @@ func installComponents(lokoConfig *config.Config, kubeconfig string, componentNa
if err := util.InstallComponent(componentName, component, kubeconfig); err != nil {
return err
}
+
+ fmt.Printf("Succesfully installed component '%s'!\n", componentName)
}
return nil
}
