cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCondition

func NewCmdCondition(streams genericiooptions.IOStreams) *cobra.Command

Types

type ConditionOptions

type ConditionOptions struct {

	// IOStreams provides the standard names for iostreams. This is useful for embedding and for unit testing.
	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

ConditionOptions is a struct that holds the configuration for the condition command.

func NewConditionOptions

func NewConditionOptions(streams genericiooptions.IOStreams) *ConditionOptions

NewConditionOptions is a function that creates a new ConditionOptions.

func (*ConditionOptions) Complete

func (o *ConditionOptions) Complete(cmd *cobra.Command, _ []string) error

Complete sets all information required for updating the current context It retrieves the restConfig from the configFlags and creates a new Kubernetes client. It also sets the condition status, reason, message, type, and remove flag from the command flags.

func (*ConditionOptions) Run

func (o *ConditionOptions) Run() error

Run handles the condition applying or removal on nodes.

Jump to

Keyboard shortcuts

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