mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-07-27 10:32:39 +00:00
Agent-Logs-Url: https://github.com/velero-io/velero/sessions/e8c22e84-a488-4645-a0e1-aea5a2926503 Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com>
21 lines
475 B
Go
21 lines
475 B
Go
package schedule
|
|
|
|
import (
|
|
"github.com/spf13/pflag"
|
|
|
|
"github.com/velero-io/velero/pkg/cmd/util/flag"
|
|
)
|
|
|
|
type SkipOptions struct {
|
|
SkipImmediately flag.OptionalBool
|
|
}
|
|
|
|
func NewSkipOptions() *SkipOptions {
|
|
return &SkipOptions{}
|
|
}
|
|
|
|
func (o *SkipOptions) BindFlags(flags *pflag.FlagSet) {
|
|
f := flags.VarPF(&o.SkipImmediately, "skip-immediately", "", "Skip the next scheduled backup immediately")
|
|
f.NoOptDefVal = "" // default to nil so server options can take precedence
|
|
}
|