controlplane

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateControlPlaneCmd = &cobra.Command{
	Use:   "controlplane",
	Short: "Create kubernetes control plane",
	Long:  `Create a kubernetes control plane with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := CreateControlPlane(ccpo); err != nil {
			log.Error(err, "Failed to create cluster")
			os.Exit(1)
		}
	},
}
View Source
var UpgradeControlPlaneCmd = &cobra.Command{
	Use:   "controlplane",
	Short: "Upgrade kubernetes control plane",
	Long:  `Upgrade a kubernetes control plane with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := UpgradeControlPlane(ucpo); err != nil {
			log.Error(err, "Failed to upgrade control plane")
			os.Exit(1)
		}
	},
}

Functions

func CreateControlPlane

func CreateControlPlane(ccpo *CreateControlPlaneOptions) error

func UpgradeControlPlane

func UpgradeControlPlane(ucpo *UpgradeControlPlaneOptions) error

Types

type CreateControlPlaneOptions

type CreateControlPlaneOptions struct {
	SubscriptionID          string
	ResourceGroup           string
	MasterKubernetesVersion string
}

type UpgradeControlPlaneOptions

type UpgradeControlPlaneOptions struct {
	SubscriptionID          string
	ResourceGroup           string
	MasterKubernetesVersion string
}

Jump to

Keyboard shortcuts

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