backupentry

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInterval is the default interval for retry operations.
	DefaultInterval = 5 * time.Second
	// DefaultTimeout is the default timeout and defines how long Gardener should wait
	// for a successful reconciliation of a BackupEntry resource.
	DefaultTimeout = 10 * time.Minute
)

Variables

View Source
var TimeNow = time.Now

TimeNow returns the current time. Exposed for testing.

Functions

func New

func New(
	logger logrus.FieldLogger,
	client client.Client,
	values *Values,
	waitInterval time.Duration,
	waitTimeout time.Duration,
) component.DeployWaiter

New creates a new instance of DeployWaiter for a BackupEntry.

Types

type Values

type Values struct {
	// Namespace is the namespace of the BackupEntry resource.
	Namespace string
	// Name is the name of the BackupEntry resource.
	Name string
	// ShootPurpose is the purpose of the shoot.
	ShootPurpose *gardencorev1beta1.ShootPurpose
	// OwnerReference is a reference to an owner for BackupEntry resource.
	OwnerReference *metav1.OwnerReference
	// SeedName is the name of the seed to which the BackupEntry shall be scheduled.
	SeedName *string
	// OverwriteSeedName indicates whether the provided SeedName in the values shall be used even if the BackupEntry
	// already exists (if this is false then the existing `.spec.seedName` will be kept even if the SeedName in these
	// values differs.
	OverwriteSeedName bool
	// BucketName is the name of the bucket in which the BackupEntry shall be reconciled. This value is only used if the
	// BackupEntry does not exist yet. Otherwise, the existing `.spec.bucketName` will be kept even if the BucketName in
	// these values differs.
	BucketName string
}

Values contains the values used to create a BackupEntry resource.

Jump to

Keyboard shortcuts

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