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 ¶
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.
Click to show internal directories.
Click to hide internal directories.