Skip to content

Commit

Permalink
adds catalogApps to function call
Browse files Browse the repository at this point in the history
  • Loading branch information
jarededwards committed Mar 12, 2024
1 parent a8a8743 commit 94ef5cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/k3s/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/rs/zerolog/log"

"github.com/kubefirst/kubefirst/internal/catalog"
"github.com/kubefirst/kubefirst/internal/cluster"
"github.com/kubefirst/kubefirst/internal/gitShim"
"github.com/kubefirst/kubefirst/internal/launch"
Expand All @@ -33,6 +34,11 @@ func createK3s(cmd *cobra.Command, args []string) error {

progress.DisplayLogHints(20)

isValid, catalogApps, err := catalog.ValidateCatalogApps(cliFlags.InstallCatalogApps)
if !isValid {
return err
}

err = ValidateProvidedFlags(cliFlags.GitProvider)
if err != nil {
progress.Error(err.Error())
Expand Down Expand Up @@ -86,7 +92,7 @@ func createK3s(cmd *cobra.Command, args []string) error {
progress.Error("unable to start kubefirst api")
}

provision.CreateMgmtCluster(gitAuth, cliFlags)
provision.CreateMgmtCluster(gitAuth, cliFlags, catalogApps)

return nil
}
Expand Down

0 comments on commit 94ef5cd

Please sign in to comment.