infrastructure

package
v1.15.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DefaultInterval is the default interval for retry operations.
	DefaultInterval = 5 * time.Second
	// DefaultSevereThreshold is the default threshold until an error reported by another component is treated as 'severe'.
	DefaultSevereThreshold = 30 * time.Second
	// DefaultTimeout is the default timeout and defines how long Gardener should wait
	// for a successful reconciliation of an infrastructure 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,
) shoot.ExtensionInfrastructure

New creates a new instance of an ExtensionInfrastructure deployer.

Types

type Values

type Values struct {
	// Namespace is the Shoot namespace in the seed.
	Namespace string
	// Name is the name of the Infrastructure resource. Commonly the Shoot's name.
	Name string
	// Type is the type of infrastructure provider.
	Type string
	// ProviderConfig contains the provider config for the Infrastructure provider.
	ProviderConfig *runtime.RawExtension
	// Region is the region of the shoot.
	Region string
	// SSHPublicKey is the to-be-used SSH public key of the shoot.
	SSHPublicKey []byte
	// IsInRestorePhaseOfControlPlaneMigration indicates if the Shoot is in the restoration
	// phase of the ControlPlane migration.
	IsInRestorePhaseOfControlPlaneMigration bool
	// DeploymentRequested indicates if the Infrastructure deployment was explicitly requested,
	// i.e., if the Shoot was annotated with the "infrastructure" task.
	DeploymentRequested bool
}

Values contains the values used to create an Infrastructure resources.

Jump to

Keyboard shortcuts

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