package taint
import "k8s.io/kubectl/pkg/cmd/taint"
Package taints implements utilites for working with taints
Index ¶
- Constants
- func NewCmdTaint(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- type TaintOptions
Constants ¶
const ( MODIFIED = "modified" TAINTED = "tainted" UNTAINTED = "untainted" )
Exported taint constant strings
Functions ¶
func NewCmdTaint ¶
Types ¶
type TaintOptions ¶
type TaintOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) DryRunStrategy cmdutil.DryRunStrategy ValidationDirective string ClientForMapping func(*meta.RESTMapping) (resource.RESTClient, error) genericiooptions.IOStreams Mapper meta.RESTMapper // contains filtered or unexported fields }
TaintOptions have the data required to perform the taint operation
func (*TaintOptions) Complete ¶
Complete adapts from the command line args and factory to the data required.
func (TaintOptions) RunTaint ¶
func (o TaintOptions) RunTaint() error
RunTaint does the work
func (TaintOptions) Validate ¶
func (o TaintOptions) Validate() error
Validate checks to the TaintOptions to see if there is sufficient information run the command.
Source Files ¶
taint.go utils.go
- Version
- v0.32.3 (latest)
- Published
- Mar 12, 2025
- Platform
- linux/amd64
- Imports
- 24 packages
- Last checked
- 5 days ago –
Tools for package owners.