
This commit implements redfish remote direct subcommand under bootstrap. Change-Id: Idf97445f6fa59a77145eae1edaa15b1d22723f19 Signed-off-by: Kanwar Saad Bin Liaqat <kanwar.sbl@gmail.com>
24 lines
619 B
Go
24 lines
619 B
Go
package bootstrap
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"opendev.org/airship/airshipctl/pkg/environment"
|
|
)
|
|
|
|
// NewBootstrapCommand creates a new command for bootstrapping airshipctl
|
|
func NewBootstrapCommand(rootSettings *environment.AirshipCTLSettings) *cobra.Command {
|
|
bootstrapRootCmd := &cobra.Command{
|
|
Use: "bootstrap",
|
|
Short: "Bootstrap ephemeral Kubernetes cluster",
|
|
}
|
|
|
|
ISOGenCmd := NewISOGenCommand(bootstrapRootCmd, rootSettings)
|
|
bootstrapRootCmd.AddCommand(ISOGenCmd)
|
|
|
|
remoteDirectCmd := NewRemoteDirectCommand(rootSettings)
|
|
bootstrapRootCmd.AddCommand(remoteDirectCmd)
|
|
|
|
return bootstrapRootCmd
|
|
}
|