(cmd *cobra.Command, flagsFactory FlagsFactory, opts *WaitFlagsOpts)
| 22 | } |
| 23 | |
| 24 | func (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 | } |
no outgoing calls
no test coverage detected