node

package
v0.0.0-...-7e48bd3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cordon = &cobra.Command{
	Use:   "cord",
	Short: "Cordon a node",
	Long:  `Cordon a node to mark it unschedulable`,
	Run: func(cmd *cobra.Command, args []string) {
		nodeName, _ := cmd.Flags().GetString("name")
		desired, _ := cmd.Flags().GetBool("desired")
		CordonNode(nodeName, desired)
	},
}

Functions

func CordonNode

func CordonNode(nodeName string, desired bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳