Documentation ¶
Index ¶
- func NewCommand(f client.Factory) *cobra.Command
- type Options
- func (o *Options) AsVeleroOptions() (*install.VeleroOptions, error)
- func (o *Options) BindFlags(flags *pflag.FlagSet)
- func (o *Options) Complete(args []string, f client.Factory) error
- func (o *Options) Run(c *cobra.Command, f client.Factory) error
- func (o *Options) Validate(c *cobra.Command, args []string, f client.Factory) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶ added in v1.12.0
type Options struct { Namespace string Image string BucketName string Prefix string ProviderName string PodAnnotations flag.Map PodLabels flag.Map ServiceAccountAnnotations flag.Map ServiceAccountName string VeleroPodCPURequest string VeleroPodMemRequest string VeleroPodCPULimit string VeleroPodMemLimit string NodeAgentPodCPURequest string NodeAgentPodMemRequest string NodeAgentPodCPULimit string NodeAgentPodMemLimit string RestoreOnly bool SecretFile string NoSecret bool DryRun bool BackupStorageConfig flag.Map VolumeSnapshotConfig flag.Map UseNodeAgent bool PrivilegedNodeAgent bool //TODO remove UseRestic when migration test out of using it UseRestic bool Wait bool UseVolumeSnapshots bool DefaultRepoMaintenanceFrequency time.Duration GarbageCollectionFrequency time.Duration Plugins flag.StringArray NoDefaultBackupLocation bool CRDsOnly bool CACertFile string Features string DefaultVolumesToFsBackup bool UploaderType string DefaultSnapshotMoveData bool DisableInformerCache bool }
Options collects all the options for installing Velero into a Kubernetes cluster.
func NewInstallOptions ¶
func NewInstallOptions() *Options
NewInstallOptions instantiates a new, default InstallOptions struct.
func (*Options) AsVeleroOptions ¶ added in v1.12.0
func (o *Options) AsVeleroOptions() (*install.VeleroOptions, error)
AsVeleroOptions translates the values provided at the command line into values used to instantiate Kubernetes resources
func (*Options) BindFlags ¶ added in v1.12.0
BindFlags adds command line values to the options struct.
Click to show internal directories.
Click to hide internal directories.