MCPcopy Create free account
hub / github.com/carvel-dev/kapp-controller / Set

Method Set

cli/pkg/kctrl/cmd/core/wait_flags.go:24–31  ·  view source on GitHub ↗
(cmd *cobra.Command, flagsFactory FlagsFactory, opts *WaitFlagsOpts)

Source from the content-addressed store, hash-verified

22}
23
24func (f *WaitFlags) Set(cmd *cobra.Command, flagsFactory FlagsFactory, opts *WaitFlagsOpts) {
25 if opts.AllowDisableWait {
26 cmd.Flags().BoolVar(&f.Enabled, "wait", true, "Wait for reconciliation to complete")
27 }
28 f.Enabled = true
29 cmd.Flags().DurationVar(&f.CheckInterval, "wait-check-interval", opts.DefaultInterval, "Amount of time to sleep between checks while waiting")
30 cmd.Flags().DurationVar(&f.Timeout, "wait-timeout", opts.DefaultTimeout, "Maximum amount of time to wait in wait phase")
31}

Callers 7

NewCmdFunction · 0.45
NewKickCmdFunction · 0.45
NewStatusCmdFunction · 0.45
NewDeleteCmdFunction · 0.45
NewPauseCmdFunction · 0.45
NewGetCmdFunction · 0.45
NewListCmdFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected