kubernetesk8s.io/kubernetes/pkg/kubectl/cmd/rollingupdate Index | Files

package rollingupdate

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

Index

Functions

func NewCmdRollingUpdate

func NewCmdRollingUpdate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command

Types

type RollingUpdateOptions

type RollingUpdateOptions struct {
	FilenameOptions *resource.FilenameOptions

	OldName     string
	KeepOldName bool

	DeploymentKey    string
	Image            string
	Container        string
	PullPolicy       string
	Rollback         bool
	Period           time.Duration
	Timeout          time.Duration
	Interval         time.Duration
	DryRun           bool
	OutputFormat     string
	Namespace        string
	EnforceNamespace bool

	ScaleClient scaleclient.ScalesGetter
	ClientSet   kubernetes.Interface
	Builder     *resource.Builder

	ShouldValidate bool
	Validator      func(bool) (validation.Schema, error)

	FindNewName func(*corev1.ReplicationController) string

	PrintFlags *genericclioptions.PrintFlags
	ToPrinter  func(string) (printers.ResourcePrinter, error)

	genericclioptions.IOStreams
}

func NewRollingUpdateOptions

func NewRollingUpdateOptions(streams genericclioptions.IOStreams) *RollingUpdateOptions

func (*RollingUpdateOptions) Complete

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

func (*RollingUpdateOptions) Run

func (o *RollingUpdateOptions) Run() error

func (*RollingUpdateOptions) Validate

func (o *RollingUpdateOptions) Validate(cmd *cobra.Command, args []string) error

Source Files

rollingupdate.go

Version
v1.14.1
Published
Apr 5, 2019
Platform
js/wasm
Imports
22 packages
Last checked
18 seconds ago

Tools for package owners.