Documentation ¶
Index ¶
- Variables
- func NewCmdRollout(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdRolloutApprove(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdRolloutHistory(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdRolloutPause(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdRolloutRestart(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdRolloutResume(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdRolloutStatus(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdRolloutUndo(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type ApproveOptions
- type PauseOptions
- type RestartOptions
- type ResumeOptions
- type RolloutHistoryOptions
- type RolloutStatusOptions
- type UndoOptions
Constants ¶
This section is empty.
Variables ¶
var ( ApproveLong = templates.LongDesc(` Approve a resource which can be continued. Paused resources will not be reconciled by a controller. By approving a resource, we allow it to be continue to rollout. Currently only kruise-rollouts support being approved.`) ApproveExample = templates.Examples(` # approve a kruise rollout resource named "rollout-demo" in "ns-demo" namespace kubectl-kruise rollout approve rollout/rollout-demo -n ns-demo`) )
Functions ¶
func NewCmdRollout ¶
NewCmdRollout returns a Command instance for 'rollout' sub command
func NewCmdRolloutApprove ¶ added in v1.0.2
NewCmdRolloutApprove returns a Command instance for 'rollout approve' sub command
func NewCmdRolloutHistory ¶
NewCmdRolloutHistory returns a Command instance for RolloutHistory sub command
func NewCmdRolloutPause ¶
NewCmdRolloutPause returns a Command instance for 'rollout pause' sub command
func NewCmdRolloutRestart ¶
NewCmdRolloutRestart returns a Command instance for 'rollout restart' sub command
func NewCmdRolloutResume ¶
NewCmdRolloutResume returns a Command instance for 'rollout resume' sub command
func NewCmdRolloutStatus ¶
NewCmdRolloutStatus returns a Command instance for the 'rollout status' sub command
func NewCmdRolloutUndo ¶
NewCmdRolloutUndo returns a Command instance for the 'rollout undo' sub command
Types ¶
type ApproveOptions ¶ added in v1.0.2
type ApproveOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Resources []string Builder func() *resource.Builder Approver internalpolymorphichelpers.ObjectApproverFunc Namespace string EnforceNamespace bool resource.FilenameOptions genericclioptions.IOStreams }
ApproveOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
func NewRolloutApproveOptions ¶ added in v1.0.2
func NewRolloutApproveOptions(streams genericclioptions.IOStreams) *ApproveOptions
NewRolloutApproveOptions returns an initialized ApproveOptions instance
func (ApproveOptions) RunApprove ¶ added in v1.0.2
func (o ApproveOptions) RunApprove() error
RunApprove performs the execution of 'rollout approve' sub command
func (*ApproveOptions) Validate ¶ added in v1.0.2
func (o *ApproveOptions) Validate() error
type PauseOptions ¶
type PauseOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Pauser internalpolymorphichelpers.ObjectPauserFunc Builder func() *resource.Builder Namespace string EnforceNamespace bool Resources []string resource.FilenameOptions genericclioptions.IOStreams }
PauseOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
func (*PauseOptions) RunPause ¶
func (o *PauseOptions) RunPause() error
RunPause performs the execution of 'rollout pause' sub command
func (*PauseOptions) Validate ¶
func (o *PauseOptions) Validate() error
type RestartOptions ¶
type RestartOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Resources []string Builder func() *resource.Builder Restarter internalpolymorphichelpers.ObjectRestarterFunc Namespace string EnforceNamespace bool resource.FilenameOptions genericclioptions.IOStreams }
RestartOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
func NewRolloutRestartOptions ¶
func NewRolloutRestartOptions(streams genericclioptions.IOStreams) *RestartOptions
NewRolloutRestartOptions returns an initialized RestartOptions instance
func (RestartOptions) RunRestart ¶
func (o RestartOptions) RunRestart() error
RunRestart performs the execution of 'rollout restart' sub command
func (*RestartOptions) Validate ¶
func (o *RestartOptions) Validate() error
type ResumeOptions ¶
type ResumeOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Resources []string Builder func() *resource.Builder Resumer internalpolymorphichelpers.ObjectResumerFunc Namespace string EnforceNamespace bool resource.FilenameOptions genericclioptions.IOStreams }
ResumeOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
func NewRolloutResumeOptions ¶
func NewRolloutResumeOptions(streams genericclioptions.IOStreams) *ResumeOptions
NewRolloutResumeOptions returns an initialized ResumeOptions instance
func (ResumeOptions) RunResume ¶
func (o ResumeOptions) RunResume() error
RunResume performs the execution of 'rollout resume' sub command
func (*ResumeOptions) Validate ¶
func (o *ResumeOptions) Validate() error
type RolloutHistoryOptions ¶
type RolloutHistoryOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Revision int64 Builder func() *resource.Builder Resources []string Namespace string EnforceNamespace bool HistoryViewer internalpolymorphichelpers.HistoryViewerFunc RESTClientGetter genericclioptions.RESTClientGetter resource.FilenameOptions genericclioptions.IOStreams }
RolloutHistoryOptions holds the options for 'rollout history' sub command
func NewRolloutHistoryOptions ¶
func NewRolloutHistoryOptions(streams genericclioptions.IOStreams) *RolloutHistoryOptions
NewRolloutHistoryOptions returns an initialized RolloutHistoryOptions instance
func (*RolloutHistoryOptions) Complete ¶
func (o *RolloutHistoryOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error
Complete completes all the required options
func (*RolloutHistoryOptions) Run ¶
func (o *RolloutHistoryOptions) Run() error
Run performs the execution of 'rollout history' sub command
func (*RolloutHistoryOptions) Validate ¶
func (o *RolloutHistoryOptions) Validate() error
Validate makes sure all the provided values for command-line options are valid
type RolloutStatusOptions ¶
type RolloutStatusOptions struct { PrintFlags *genericclioptions.PrintFlags Namespace string EnforceNamespace bool BuilderArgs []string Watch bool Revision int64 Timeout time.Duration Detail bool StatusViewerFn func(*meta.RESTMapping) (internalpolymorphichelpers.StatusViewer, error) Builder func() *resource.Builder DynamicClient dynamic.Interface ClientSet kubernetes.Interface FilenameOptions *resource.FilenameOptions genericclioptions.IOStreams }
RolloutStatusOptions holds the command-line options for 'rollout status' sub command
func NewRolloutStatusOptions ¶
func NewRolloutStatusOptions(streams genericclioptions.IOStreams) *RolloutStatusOptions
NewRolloutStatusOptions returns an initialized RolloutStatusOptions instance
func (*RolloutStatusOptions) Complete ¶
func (o *RolloutStatusOptions) Complete(f cmdutil.Factory, args []string) error
Complete completes all the required options
func (*RolloutStatusOptions) Run ¶
func (o *RolloutStatusOptions) Run() error
Run performs the execution of 'rollout status' sub command
func (*RolloutStatusOptions) Validate ¶
func (o *RolloutStatusOptions) Validate() error
Validate makes sure all the provided values for command-line options are valid
type UndoOptions ¶
type UndoOptions struct { PrintFlags *genericclioptions.PrintFlags ToPrinter func(string) (printers.ResourcePrinter, error) Builder func() *resource.Builder ToRevision int64 DryRunStrategy cmdutil.DryRunStrategy Resources []string Namespace string EnforceNamespace bool RESTClientGetter genericclioptions.RESTClientGetter resource.FilenameOptions genericclioptions.IOStreams }
UndoOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
func NewRolloutUndoOptions ¶
func NewRolloutUndoOptions(streams genericclioptions.IOStreams) *UndoOptions
NewRolloutUndoOptions returns an initialized UndoOptions instance
func (*UndoOptions) RunUndo ¶
func (o *UndoOptions) RunUndo() error
RunUndo performs the execution of 'rollout undo' sub command
func (*UndoOptions) Validate ¶
func (o *UndoOptions) Validate() error