install

package
v0.0.0-...-c1b1270 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(f client.Factory) *cobra.Command

NewCommand creates a cobra command.

Types

type Options

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
	Wait                            bool
	UseVolumeSnapshots              bool
	DefaultRepoMaintenanceFrequency time.Duration
	GarbageCollectionFrequency      time.Duration
	PodVolumeOperationTimeout       time.Duration
	Plugins                         flag.StringArray
	NoDefaultBackupLocation         bool
	CRDsOnly                        bool
	CACertFile                      string
	Features                        string
	DefaultVolumesToFsBackup        bool
	UploaderType                    string
	DefaultSnapshotMoveData         bool
	DisableInformerCache            bool
	ScheduleSkipImmediately         bool
	PodResources                    kubeutil.PodResources
	KeepLatestMaintenanceJobs       int
	BackupRepoConfigMap             string
	RepoMaintenanceJobConfigMap     string
	NodeAgentConfigMap              string
	ItemBlockWorkerCount            int
}

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

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

func (o *Options) BindFlags(flags *pflag.FlagSet)

BindFlags adds command line values to the options struct.

func (*Options) Complete

func (o *Options) Complete(args []string, f client.Factory) error

Complete completes options for a command.

func (*Options) Run

func (o *Options) Run(c *cobra.Command, f client.Factory) error

Run executes a command in the context of the provided arguments.

func (*Options) Validate

func (o *Options) Validate(c *cobra.Command, args []string, f client.Factory) error

Validate validates options provided to a command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL