infrastructure

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInterval is the default interval for retry operations.
	DefaultInterval = 10 * time.Second
	// DefaultSevereThreshold is the default threshold until an error reported by another component is treated as 'severe'.
	DefaultSevereThreshold = 3 * time.Minute
	// 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

This section is empty.

Types

type Interface

type Interface interface {
	component.DeployMigrateWaiter
	// Get retrieves and returns the Infrastructure resources based on the configured values.
	Get(context.Context) (*extensionsv1alpha1.Infrastructure, error)
	// SetSSHPublicKey sets the SSH public key in the values.
	SetSSHPublicKey([]byte)
	// ProviderStatus returns the generated status of the provider.
	ProviderStatus() *runtime.RawExtension
	// NodesCIDRs returns the generated nodes CIDRs of the provider.
	NodesCIDRs() []string
	// ServicesCIDRs returns the generated services CIDRs of the provider.
	ServicesCIDRs() []string
	// PodsCIDRs returns the generated pods CIDRs of the provider.
	PodsCIDRs() []string
	// EgressCIDRs returns a list of CIDRs used as source IP by any traffic originating from the shoot's worker nodes.
	EgressCIDRs() []string
}

Interface is an interface for managing Infrastructures.

func New

func New(
	log logr.Logger,
	client client.Client,
	values *Values,
	waitInterval time.Duration,
	waitSevereThreshold time.Duration,
	waitTimeout time.Duration,
) Interface

New creates a new instance of Interface.

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
	// AnnotateOperation indicates if the Infrastructure resource shall be annotated with the
	// respective "gardener.cloud/operation" (forcing a reconciliation or restoration). If this is false
	// then the Infrastructure object will be created/updated but the extension controller will not
	// act upon it.
	AnnotateOperation bool
}

Values contains the values used to create an Infrastructure resources.

Directories

Path Synopsis
Package infrastructure is a generated GoMock package.
Package infrastructure is a generated GoMock package.

Jump to

Keyboard shortcuts

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