cli/cmd/cluster-install: check for errors when installing components
Otherwise failures will not be visible, which gives false assumption
that everything went well.
@@ -98,7 +98,9 @@ func runClusterInstall(cmd *cobra.Command, args []string) {
}
if len(componentsToInstall) > 0 {
- installComponents(lokoConfig, kubeconfigPath, componentsToInstall...)
+ if err := installComponents(lokoConfig, kubeconfigPath, componentsToInstall...); err != nil {
+ ctxLogger.Fatalf("Installing components failed: %v", err)
+ }
}
}
