Files
kube-forge/cmd/apply.go

23 lines
392 B
Go

package cmd
import (
"kube-forge/internal/kubespray"
"kube-forge/internal/templates"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(applyCmd)
}
var applyCmd = &cobra.Command{
Use: "apply",
Short: "Apply configuration",
Run: func(cmd *cobra.Command, args []string) {
templates.ApplyK8sTemplates()
kubespray.InstallCluster("")
installAndConfigureModules()
},
}