cluster

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateClusterCmd = &cobra.Command{
	Use:   "cluster",
	Short: "Create kubernetes cluster",
	Long:  `Create a kubernetes cluster with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := RunCreate(co); err != nil {
			log.Error(err, "Failed to create cluster")
			os.Exit(1)
		}
	},
}
View Source
var DeleteClusterCmd = &cobra.Command{
	Use:   "cluster",
	Short: "Delete kubernetes cluster",
	Long:  `Delete a kubernetes cluster with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := RunDelete(do); err != nil {
			log.Error(err, "Failed to delete cluster")
			os.Exit(1)
		}
	},
}

Functions

func RunCreate

func RunCreate(co *CreateOptions) error

func RunDelete

func RunDelete(do *DeleteOptions) error

Types

type CreateOptions

type CreateOptions struct {
	SubscriptionID    string
	ClientID          string
	ClientSecret      string
	TenantID          string
	ResourceGroup     string
	ResourceLocation  string
	DNSPrefix         string
	KubernetesVersion string
	NodePoolName      string
	NodePoolCount     int32
	KubeconfigOutput  string
	VMSKUType         string
	IsDevelopment     bool
}

type DeleteOptions

type DeleteOptions struct {
	SubscriptionID string
	ResourceGroup  string
}

Jump to

Keyboard shortcuts

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