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.
Click to show internal directories.
Click to hide internal directories.