cmd

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "clusterctl",
	Short: "cluster management",
	Long:  `Simple kubernetes cluster management`,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		cmd.Flags().Set("logtostderr", "true")
	},
	Run: func(cmd *cobra.Command, args []string) {

		cmd.Help()
	},
}

Functions

func Execute

func Execute()

func InitLogs

func InitLogs()

InitLogs initializes logs the way we want for kubernetes.

func RunAlphaPhaseApplyAddons

func RunAlphaPhaseApplyAddons(paao *AlphaPhaseApplyAddonsOptions) error

func RunAlphaPhaseApplyBootstrapComponents

func RunAlphaPhaseApplyBootstrapComponents(pabco *AlphaPhaseApplyBootstrapComponentsOptions) error

func RunAlphaPhaseApplyCluster

func RunAlphaPhaseApplyCluster(paco *AlphaPhaseApplyClusterOptions) error

func RunAlphaPhaseApplyClusterAPIComponents

func RunAlphaPhaseApplyClusterAPIComponents(pacaso *AlphaPhaseApplyClusterAPIComponentsOptions) error

func RunAlphaPhaseApplyMachines

func RunAlphaPhaseApplyMachines(pamo *AlphaPhaseApplyMachinesOptions) error

func RunAlphaPhaseCreateBootstrapCluster

func RunAlphaPhaseCreateBootstrapCluster(pcbco *AlphaPhaseCreateBootstrapClusterOptions) error

func RunAlphaPhaseGetKubeconfig

func RunAlphaPhaseGetKubeconfig(pgko *AlphaPhaseGetKubeconfigOptions) error

func RunAlphaPhasePivot

func RunAlphaPhasePivot(ppo *AlphaPhasePivotOptions) error

func RunCreate

func RunCreate(co *CreateOptions) error

func RunDelete

func RunDelete() error

func RunValidateCluster

func RunValidateCluster() error

Types

type AlphaPhaseApplyAddonsOptions

type AlphaPhaseApplyAddonsOptions struct {
	Kubeconfig string
	Addons     string
}

type AlphaPhaseApplyBootstrapComponentsOptions

type AlphaPhaseApplyBootstrapComponentsOptions struct {
	Kubeconfig          string
	BootstrapComponents string
}

type AlphaPhaseApplyClusterAPIComponentsOptions

type AlphaPhaseApplyClusterAPIComponentsOptions struct {
	Kubeconfig         string
	ProviderComponents string
}

type AlphaPhaseApplyClusterOptions

type AlphaPhaseApplyClusterOptions struct {
	Kubeconfig string
	Cluster    string
}

type AlphaPhaseApplyMachinesOptions

type AlphaPhaseApplyMachinesOptions struct {
	Kubeconfig string
	Machines   string
	Namespace  string
}

type AlphaPhaseCreateBootstrapClusterOptions

type AlphaPhaseCreateBootstrapClusterOptions struct {
	Bootstrap        bootstrap.Options
	KubeconfigOutput string
}

type AlphaPhaseGetKubeconfigOptions

type AlphaPhaseGetKubeconfigOptions struct {
	ClusterName      string
	Kubeconfig       string
	KubeconfigOutput string
	Namespace        string
	Provider         string
}

type AlphaPhasePivotOptions

type AlphaPhasePivotOptions struct {
	SourceKubeconfig   string
	TargetKubeconfig   string
	ProviderComponents string
}

type CreateOptions

type CreateOptions struct {
	Cluster                 string
	Machine                 string
	ProviderComponents      string
	AddonComponents         string
	BootstrapOnlyComponents string
	Provider                string
	KubeconfigOutput        string
	BootstrapFlags          bootstrap.Options
}

type DeleteOptions

type DeleteOptions struct {
	KubeconfigPath      string
	ProviderComponents  string
	KubeconfigOverrides tcmd.ConfigOverrides
	BootstrapFlags      bootstrap.Options
}

type KlogWriter

type KlogWriter struct{}

KlogWriter serves as a bridge between the standard log package and the klog package.

func (KlogWriter) Write

func (writer KlogWriter) Write(data []byte) (n int, err error)

Write implements the io.Writer interface.

type ValidateClusterOptions

type ValidateClusterOptions struct {
	KubeconfigOverrides tcmd.ConfigOverrides
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL