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 ¶
func (s *SelfHostedShootExposure) Deploy(ctx context.Context) error
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 ¶
func (s *SelfHostedShootExposure) Wait(ctx context.Context) error
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.
Click to show internal directories.
Click to hide internal directories.