MCPcopy
hub / github.com/kubernetes/kubectl / NewScaleOptions

Function NewScaleOptions

pkg/cmd/scale/scale.go:96–104  ·  view source on GitHub ↗
(ioStreams genericiooptions.IOStreams)

Source from the content-addressed store, hash-verified

94}
95
96func NewScaleOptions(ioStreams genericiooptions.IOStreams) *ScaleOptions {
97 return &ScaleOptions{
98 PrintFlags: genericclioptions.NewPrintFlags("scaled"),
99 RecordFlags: genericclioptions.NewRecordFlags(),
100 CurrentReplicas: -1,
101 Recorder: genericclioptions.NoopRecorder{},
102 IOStreams: ioStreams,
103 }
104}
105
106// NewCmdScale returns a cobra command with the appropriate configuration and flags to run scale
107func NewCmdScale(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {

Callers 1

NewCmdScaleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…