selfhostedshootexposure

package
v1.149.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SelfHostedShootExposure

type SelfHostedShootExposure struct {
	Values *Values

	// exposed for testing
	WaitInterval        time.Duration
	WaitSevereThreshold time.Duration
	WaitTimeout         time.Duration

	// Ingress is the LoadBalancer ingress reported by the extension controller.
	Ingress []corev1.LoadBalancerIngress
	// contains filtered or unexported fields
}

SelfHostedShootExposure manages a SelfHostedShootExposure extension resource.

func New

func New(
	log logr.Logger,
	c client.Client,
	clock clock.Clock,
	values *Values,
) *SelfHostedShootExposure

New creates a new SelfHostedShootExposure component with the default wait settings.

func (*SelfHostedShootExposure) Deploy

Deploy creates or updates the SelfHostedShootExposure resource and triggers a reconciliation by setting the gardener.cloud/operation=reconcile annotation.

func (*SelfHostedShootExposure) Destroy

func (s *SelfHostedShootExposure) Destroy(ctx context.Context) error

Destroy deletes the SelfHostedShootExposure resource.

func (*SelfHostedShootExposure) Wait

Wait waits until the SelfHostedShootExposure resource is ready and sets the Ingress field.

func (*SelfHostedShootExposure) WaitCleanup

func (s *SelfHostedShootExposure) WaitCleanup(ctx context.Context) error

WaitCleanup waits until the SelfHostedShootExposure resource is deleted.

type Values

type Values struct {
	// Namespace is the shoot's control-plane namespace.
	Namespace string
	// Name is the name of the SelfHostedShootExposure resource.
	Name string
	// Type is the extension type (e.g. "local", "aws").
	Type string
	// Class holds the extension class (defaults to ExtensionClassShoot when nil).
	Class *extensionsv1alpha1.ExtensionClass
	// CredentialsRef is a reference to the cloud provider credentials.
	// It is only set for shoots with managed infrastructure.
	CredentialsRef *corev1.ObjectReference
	// Endpoints contains the control-plane nodes that should be exposed.
	Endpoints []extensionsv1alpha1.ControlPlaneEndpoint
}

Values contains the values used to create a SelfHostedShootExposure resource.

Jump to

Keyboard shortcuts

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