Documentation ¶
Index ¶
- Variables
- func AddCommands(cmd *cobra.Command, cli CLI)
- func NewClusterCheckFreeDiskSpaceCmd(_ CLI) *cobra.Command
- func NewClusterCmd(cli CLI) *cobra.Command
- func NewClusterMigrateMultinodeStorageCmd(cli CLI) *cobra.Command
- func NewClusterNodesMissingImageCmd(_ CLI) *cobra.Command
- func NewHostpathToBlockCmd(_ CLI) *cobra.Command
- func NewKurlCmd(cli CLI) *cobra.Command
- func NewLonghornCmd(cli CLI) *cobra.Command
- func NewLonghornPrepareForMigration(cli CLI) *cobra.Command
- func NewLonghornRollbackMigrationReplicas(cli CLI) *cobra.Command
- func NewRookCmd(cli CLI) *cobra.Command
- func NewRookFlexvolumeToCSI(_ CLI) *cobra.Command
- func NewRookHasSufficientBlockDevicesCmd(_ CLI) *cobra.Command
- func NewRookHealthCmd(_ CLI) *cobra.Command
- func NewRookWaitForCephVersionCmd(_ CLI) *cobra.Command
- func NewRookWaitForHealthCmd(_ CLI) *cobra.Command
- func NewRookWaitForRookVersionCmd(_ CLI) *cobra.Command
- func OutputFailRed() string
- func OutputInfoBlue() string
- func OutputPassGreen() string
- func OutputWarnYellow() string
- type CLI
- type ClusterReadyStatus
- type KurlCLI
- func (cli *KurlCLI) DebugLogger() *log.Logger
- func (cli *KurlCLI) GetClusterPreflightRunner() preflight.RunnerCluster
- func (cli *KurlCLI) GetFS() afero.Fs
- func (cli *KurlCLI) GetHostPreflightRunner() preflight.RunnerHost
- func (cli *KurlCLI) GetReadline() *readline.Instance
- func (cli *KurlCLI) GetViper() *viper.Viper
- func (cli *KurlCLI) Logger() *log.Logger
- func (cli *KurlCLI) SetStderr(w io.Writer)
- func (cli *KurlCLI) SetStdout(w io.Writer)
- func (cli *KurlCLI) Stderr() io.Writer
- func (cli *KurlCLI) Stdout() io.Writer
- type MigrationReadyStatus
Constants ¶
This section is empty.
Variables ¶
var Blue = "\033[34m"
var ErrWarn = errors.New("host preflights have warnings")
ErrWarn is the standard 'host preflights have warnings' error
var Green = "\033[32m"
var Red = "\033[31m"
var Reset = "\033[0m"
var Yellow = "\033[33m"
Functions ¶
func AddCommands ¶
AddCommands adds version/host/objectstore/newformataddress commands to the cobra object
func NewClusterCheckFreeDiskSpaceCmd ¶
NewClusterCheckFreeDiskSpaceCmd returns a command that is capable of reporting back the amount of free space in the cluster for a provided storage class.
func NewClusterCmd ¶
func NewHostpathToBlockCmd ¶
func NewKurlCmd ¶
NewKurlCmd creates a CLI for the kURL custom Kubernetes distro creator
func NewLonghornCmd ¶
func NewRookCmd ¶
func NewRookFlexvolumeToCSI ¶
func NewRookHealthCmd ¶
func NewRookWaitForHealthCmd ¶
func OutputInfoBlue ¶
func OutputInfoBlue() string
OutputInfoBlue return [Info] to be outputted in blue
func OutputPassGreen ¶
func OutputPassGreen() string
OutputPassGreen return [PASS] to be outputted in green
func OutputWarnYellow ¶
func OutputWarnYellow() string
OutputWarnYellow return [Warn] to be outputted in yellow
Types ¶
type CLI ¶
type CLI interface { GetViper() *viper.Viper GetFS() afero.Fs GetReadline() *readline.Instance GetHostPreflightRunner() preflight.RunnerHost GetClusterPreflightRunner() preflight.RunnerCluster Stdout() io.Writer Stderr() io.Writer Logger() *log.Logger DebugLogger() *log.Logger }
CLI contains the required methods for a kurl CLI
type ClusterReadyStatus ¶
type ClusterReadyStatus struct { MigrationReadyStatus NrNodes int `json:"nrNodes"` RequiredNrNodes int `json:"requiredNrNodes"` }
ClusterReadyStatus represents the status of the cluster readiness check, namely whether the total number of nodes in the cluster exceed or meet the minimum required number of nodes for the migration to start.
type KurlCLI ¶
type KurlCLI struct {
// contains filtered or unexported fields
}
KurlCLI is the real implementation of the kurl CLI
func (*KurlCLI) DebugLogger ¶
DebugLogger returns the logger that should be used for debug level output. DebugLogger logs to stderr.
func (*KurlCLI) GetClusterPreflightRunner ¶
func (cli *KurlCLI) GetClusterPreflightRunner() preflight.RunnerCluster
GetClusterPreflightRunner returns the runner for preflight checks
func (*KurlCLI) GetHostPreflightRunner ¶
func (cli *KurlCLI) GetHostPreflightRunner() preflight.RunnerHost
GetHostPreflightRunner returns the runner for preflight checks
func (*KurlCLI) GetReadline ¶
GetReadline returns readline, which is used for interacting with terminals
func (*KurlCLI) Logger ¶
Logger returns the logger that should be used for standard log output. Logger logs to stderr.
type MigrationReadyStatus ¶
MigrationReadyStatus represents the status of the migration readiness check, includes a reason, the total number of nodes in the cluster and the required number of nodes needed to start the migration.
Source Files ¶
- cli.go
- cluster.go
- cluster_free_disk_space.go
- cluster_images.go
- cluster_migrate_multinode_storage.go
- colors.go
- commands.go
- errors.go
- format_address.go
- host.go
- host_preflight.go
- host_protectedid.go
- hostname.go
- longhorn.go
- netutil.go
- nodes_connectivity.go
- object_store.go
- rook.go
- rook_flexvolume_to_csi.go
- rook_has_sufficient_blockdevices.go
- rook_health.go
- rook_hostpath_to_block.go
- rook_wait_for_health.go
- rook_wait_for_version.go
- root.go
- version.go