pkg/components/util/install.go: install compatible components using Helm
This allows us to slowly migrate to manage all components using Helm.
@@ -16,7 +16,11 @@ import (
)
// InstallComponent installs given component using given kubeconfig.
-func InstallComponent(_ string, c components.Component, kubeconfig string) error {
+func InstallComponent(name string, c components.Component, kubeconfig string) error {
+ if c.Metadata().Helm != nil {
+ return InstallAsRelease(name, c, kubeconfig)
+ }
+
return InstallAsManifests(c, kubeconfig)
}
