nodepool

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 CreateNodepoolCmd = &cobra.Command{
	Use:   "nodepool",
	Short: "Create Node Pool",
	Long:  `Create a Node Pool with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := CreateNodePool(cnpo); err != nil {
			log.Error(err, "Failed to create cluster")
			os.Exit(1)
		}
	},
}
View Source
var DeleteNodepoolCmd = &cobra.Command{
	Use:   "nodepool",
	Short: "Delete Node Pool",
	Long:  `Delete a node pool with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := DeleteNodePool(dnpo); err != nil {
			log.Error(err, "Failed to delete cluster")
			os.Exit(1)
		}
	},
}
View Source
var ScaleNodepoolCmd = &cobra.Command{
	Use:   "nodepool",
	Short: "Scale Node Pool",
	Long:  `Scale a node pool with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := ScaleNodePool(snpo); err != nil {
			log.Error(err, "Failed to scale cluster")
			os.Exit(1)
		}
	},
}
View Source
var UpgradeNodepoolCmd = &cobra.Command{
	Use:   "nodepool",
	Short: "Upgrade Node Pool",
	Long:  `Upgrade a node pool with one command`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := UpgradeNodePool(unpo); err != nil {
			log.Error(err, "Failed to upgrade cluster")
			os.Exit(1)
		}
	},
}

Functions

func CreateNodePool

func CreateNodePool(cnpo *CreateNodePoolOptions) error

func DeleteNodePool

func DeleteNodePool(dnpo *DeleteNodePoolOptions) error

func ScaleNodePool

func ScaleNodePool(snpo *ScaleNodePoolOptions) error

func UpgradeNodePool

func UpgradeNodePool(unpo *UpgradeNodePoolOptions) error

Types

type CreateNodePoolOptions

type CreateNodePoolOptions struct {
	SubscriptionID         string
	Name                   string
	ResourceGroup          string
	Count                  int32
	AgentKubernetesVersion string
}

type DeleteNodePoolOptions

type DeleteNodePoolOptions struct {
	SubscriptionID string
	ResourceGroup  string
	Name           string
}

type ScaleNodePoolOptions

type ScaleNodePoolOptions struct {
	SubscriptionID string
	ResourceGroup  string
	Name           string
	Count          int32
}

type UpgradeNodePoolOptions

type UpgradeNodePoolOptions struct {
	SubscriptionID         string
	ResourceGroup          string
	Name                   string
	AgentKubernetesVersion string
}

Jump to

Keyboard shortcuts

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