config

package
v0.0.0-...-1eaa894 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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKeepLatestMaintenanceJobs = 3
	DefaultMaintenanceJobCPURequest  = "0"
	DefaultMaintenanceJobCPULimit    = "0"
	DefaultMaintenanceJobMemRequest  = "0"
	DefaultMaintenanceJobMemLimit    = "0"

	DefaultItemBlockWorkerCount = 1
)

Variables

Functions

This section is empty.

Types

type Config

type Config struct {
	PluginDir                      string
	MetricsAddress                 string
	DefaultBackupLocation          string // TODO(2.0) Deprecate defaultBackupLocation
	BackupSyncPeriod               time.Duration
	PodVolumeOperationTimeout      time.Duration
	ResourceTerminatingTimeout     time.Duration
	DefaultBackupTTL               time.Duration
	StoreValidationFrequency       time.Duration
	DefaultCSISnapshotTimeout      time.Duration
	DefaultItemOperationTimeout    time.Duration
	ResourceTimeout                time.Duration
	RestoreResourcePriorities      types.Priorities
	DefaultVolumeSnapshotLocations flag.Map
	RestoreOnly                    bool
	DisabledControllers            []string
	ClientQPS                      float32
	ClientBurst                    int
	ClientPageSize                 int
	ProfilerAddress                string
	LogLevel                       *logging.LevelFlag
	LogFormat                      *logging.FormatFlag
	RepoMaintenanceFrequency       time.Duration
	GarbageCollectionFrequency     time.Duration
	ItemOperationSyncFrequency     time.Duration
	DefaultVolumesToFsBackup       bool
	UploaderType                   string
	MaxConcurrentK8SConnections    int
	DefaultSnapshotMoveData        bool
	DisableInformerCache           bool
	ScheduleSkipImmediately        bool
	CredentialsDirectory           string
	BackupRepoConfig               string
	RepoMaintenanceJobConfig       string
	PodResources                   kube.PodResources
	KeepLatestMaintenanceJobs      int
	ItemBlockWorkerCount           int
}

func GetDefaultConfig

func GetDefaultConfig() *Config

func (*Config) BindFlags

func (c *Config) BindFlags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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