Documentation ¶
Index ¶
- Variables
- func CreateNodePool(cnpo *CreateNodePoolOptions) error
- func DeleteNodePool(dnpo *DeleteNodePoolOptions) error
- func ScaleNodePool(snpo *ScaleNodePoolOptions) error
- func UpgradeNodePool(unpo *UpgradeNodePoolOptions) error
- type CreateNodePoolOptions
- type DeleteNodePoolOptions
- type ScaleNodePoolOptions
- type UpgradeNodePoolOptions
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 DeleteNodePoolOptions ¶
type ScaleNodePoolOptions ¶
Click to show internal directories.
Click to hide internal directories.