cmd

package
v0.0.0-...-03e4ed8 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 27 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) {

		flag.CommandLine.Parse(nil)

		klogFlags := flag.NewFlagSet("klog", flag.ExitOnError)
		klog.InitFlags(klogFlags)

		cmd.Flags().VisitAll(func(f1 *pflag.Flag) {
			f2 := klogFlags.Lookup(f1.Name)
			if f2 != nil {
				value := f1.Value.String()
				f2.Value.Set(value)
			}
		})
	},
	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 {
	MiniKube         []string
	VmDriver         string
	KubeconfigOutput string
}

type CreateOptions

type CreateOptions struct {
	Cluster                       string
	Machine                       string
	ProviderComponents            string
	AddonComponents               string
	CleanupBootstrapCluster       bool
	MiniKube                      []string
	VmDriver                      string
	Provider                      string
	KubeconfigOutput              string
	ExistingClusterKubeconfigPath string
}

type DeleteOptions

type DeleteOptions struct {
	KubeconfigPath                string
	ProviderComponents            string
	ClusterNamespace              string
	CleanupBootstrapCluster       bool
	MiniKube                      []string
	VmDriver                      string
	ExistingClusterKubeconfigPath string
	KubeconfigOverrides           tcmd.ConfigOverrides
}

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