Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 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 Extension resource. DefaultTimeout = 3 * time.Minute )
View Source
var TimeNow = time.Now
TimeNow returns the current time. Exposed for testing.
View Source
var WaitUntilExtensionObjectReady = extensions.WaitUntilExtensionObjectReady
WaitUntilExtensionObjectReady is an alias for extensions.WaitUntilExtensionObjectReady. Exposed for tests.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension struct {
extensionsv1alpha1.Extension
// Timeout is the maximum waiting time for the Extension status to report readiness.
Timeout time.Duration
// Lifecycle defines when an extension resource should be updated during different operations.
Lifecycle *gardencorev1beta1.ControllerResourceLifecycle
}
Extension contains information about the desired Extension resources as well as configuration information.
type Interface ¶
type Interface interface {
// Deploy deploys extensions independent of the configured lifecycle.
Deploy(context.Context) error
// Wait waits until all extensions are deployed and report readiness.
Wait(context.Context) error
// Destroy deletes all extensions.
Destroy(ctx context.Context) error
// WaitCleanup waits until all extensions are cleaned up.
WaitCleanup(ctx context.Context) error
// DeleteStaleResources deletes unused Extension resources from the shoot namespace in the seed.
DeleteStaleResources(context.Context) error
// WaitCleanupStaleResources waits until all unused Extension resources are cleaned up.
WaitCleanupStaleResources(context.Context) error
// Extensions returns the map of extensions where the key is the type and the value is an Extension structure.
Extensions() map[string]Extension
// DeployBeforeKubeAPIServer deploys extensions that should be handled before the kube-apiserver.
DeployBeforeKubeAPIServer(context.Context) error
// RestoreBeforeKubeAPIServer restores extensions that should be handled before the kube-apiserver.
RestoreBeforeKubeAPIServer(context.Context, *gardencorev1beta1.ShootState) error
// WaitBeforeKubeAPIServer waits until all extensions that should be handled before the kube-apiserver are deployed and report readiness.
WaitBeforeKubeAPIServer(context.Context) error
// DeployAfterKubeAPIServer deploys extensions that should be handled after the kube-apiserver.
DeployAfterKubeAPIServer(ctx context.Context) error
// RestoreAfterKubeAPIServer restores extensions that should be handled after the kube-apiserver.
RestoreAfterKubeAPIServer(ctx context.Context, shootState *gardencorev1beta1.ShootState) error
// WaitAfterKubeAPIServer waits until all extensions that should be handled after the kube-apiserver are deployed and report readiness.
WaitAfterKubeAPIServer(ctx context.Context) error
// DeployAfterWorker deploys extensions that should be handled after the workers.
DeployAfterWorker(ctx context.Context) error
// RestoreAfterWorker restores extensions that should be handled after the workers.
RestoreAfterWorker(ctx context.Context, shootState *gardencorev1beta1.ShootState) error
// WaitAfterWorker waits until all extensions that should be handled after the workers are deployed and report readiness.
WaitAfterWorker(ctx context.Context) error
// DestroyBeforeKubeAPIServer deletes the extensions that should be handled before the kube-apiserver.
DestroyBeforeKubeAPIServer(context.Context) error
// WaitCleanupBeforeKubeAPIServer waits until the extensions that should be handled before the kube-apiserver are cleaned up.
WaitCleanupBeforeKubeAPIServer(context.Context) error
// DestroyAfterKubeAPIServer deletes the extensions that should be handled after the kube-apiserver.
DestroyAfterKubeAPIServer(context.Context) error
// WaitCleanupAfterKubeAPIServer waits until the extensions that should be handled after the kube-apiserver are cleaned up.
WaitCleanupAfterKubeAPIServer(context.Context) error
// MigrateBeforeKubeAPIServer migrates all Extension resources that should be handled before the kube-apiserver.
MigrateBeforeKubeAPIServer(ctx context.Context) error
// WaitMigrateBeforeKubeAPIServer waits until all Extension resources that should be handled before the kube-apiserver are migrated.
WaitMigrateBeforeKubeAPIServer(ctx context.Context) error
// MigrateAfterKubeAPIServer migrates all Extension resources that should be handled after the kube-apiserver.
MigrateAfterKubeAPIServer(ctx context.Context) error
// WaitMigrateAfterKubeAPIServer waits until all Extension resources that should be handled after the kube-apiserver are migrated.
WaitMigrateAfterKubeAPIServer(ctx context.Context) error
}
Interface contains references to an Extension deployer.
type Values ¶
type Values struct {
// Class is the class used for the extension spec.
// For the shoot class, this value is usually nil for backward compatibility.
Class *extensionsv1alpha1.ExtensionClass
// Namespace is the namespace into which the Extension resources should be deployed.
Namespace string
// Optional name prefix for the extension resources.
NamePrefix *string
// Extensions is the map of extensions where the key is the type and the value is an Extension structure.
Extensions map[string]Extension
}
Values contains the values used to create an Extension resources.
Click to show internal directories.
Click to hide internal directories.