cmd

package
v0.0.0-...-9d16c16 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 26 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 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 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 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 CreateOptions

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

type DeleteOptions

type DeleteOptions struct {
	KubeconfigPath      string
	ProviderComponents  string
	ClusterNamespace    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