kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/taint Index | Files

package taint

import "k8s.io/kubernetes/pkg/kubectl/cmd/taint"

Package taints implements utilites for working with taints


Package Files

taint.go utils.go


const (
    MODIFIED  = "modified"
    TAINTED   = "tainted"
    UNTAINTED = "untainted"

Exported taint constant strings

func NewCmdTaint Uses

func NewCmdTaint(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

type TaintOptions Uses

type TaintOptions struct {
    PrintFlags *genericclioptions.PrintFlags
    ToPrinter  func(string) (printers.ResourcePrinter, error)

    ClientForMapping func(*meta.RESTMapping) (resource.RESTClient, error)

    // contains filtered or unexported fields

TaintOptions have the data required to perform the taint operation

func (*TaintOptions) Complete Uses

func (o *TaintOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) (err error)

Complete adapts from the command line args and factory to the data required.

func (TaintOptions) RunTaint Uses

func (o TaintOptions) RunTaint() error

RunTaint does the work

func (TaintOptions) Validate Uses

func (o TaintOptions) Validate() error

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

Package taint imports 20 packages (graph) and is imported by 10 packages. Updated 2019-07-19. Refresh now. Tools for package owners.