taint

package
v1.8.0-preview1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MODIFIED  = "modified"
	TAINTED   = "tainted"
	UNTAINTED = "untainted"
)

Exported taint constant strings to mark the type of the current operation

Variables

This section is empty.

Functions

func NewCmdTaint

func NewCmdTaint(f util.Factory, parentCommand string) *cobra.Command

NewCmdTaint defines the `taint` command that mark cluster with taints

Types

type CommandTaintOption

type CommandTaintOption struct {
	// DryRun tells if run the command in dry-run mode, without making any server requests.
	DryRun bool
	// contains filtered or unexported fields
}

CommandTaintOption holds all command options for taint

func (*CommandTaintOption) Complete

func (o *CommandTaintOption) Complete(f cmdutil.Factory, args []string) error

Complete ensures that options are valid and marshals them if necessary

func (*CommandTaintOption) Run

Run set taints for the clusters

func (*CommandTaintOption) Validate

func (o *CommandTaintOption) Validate() error

Validate checks to the TaintOptions to see if there is sufficient information run the command

Jump to

Keyboard shortcuts

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