Documentation
¶
Index ¶
- Constants
- Variables
- func AddToManager(_ context.Context, mgr manager.Manager) error
- func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
- type Actuator
- func (a *Actuator) Delete(ctx context.Context, log logr.Logger, ...) error
- func (a *Actuator) DetermineOptions(ctx context.Context, exposure *extensionsv1alpha1.SelfHostedShootExposure, ...) (*Options, error)
- func (a *Actuator) ForceDelete(_ context.Context, _ logr.Logger, ...) error
- func (a *Actuator) Reconcile(ctx context.Context, log logr.Logger, ...) ([]corev1.LoadBalancerIngress, error)
- func (a *Actuator) WithManager(mgr manager.Manager) *Actuator
- type AddOptions
- type Options
- type Resources
Constants ¶
View Source
const (
ExposureLabelKey = "exposure.stackit.cloud"
)
Variables ¶
View Source
var DefaultAddOptions = AddOptions{}
DefaultAddOptions are the default AddOptions for AddToManager.
Functions ¶
func AddToManager ¶
AddToManager adds a controller with the default Options.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, opts AddOptions) error
AddToManagerWithOptions adds a controller with the given Options to the given manager. The opts.Reconciler is being set with a newly instantiated Actuator.
Types ¶
type Actuator ¶
func (*Actuator) Delete ¶
func (a *Actuator) Delete(ctx context.Context, log logr.Logger, exposure *extensionsv1alpha1.SelfHostedShootExposure, cluster *extensionscontroller.Cluster) error
func (*Actuator) DetermineOptions ¶
func (a *Actuator) DetermineOptions(ctx context.Context, exposure *extensionsv1alpha1.SelfHostedShootExposure, cluster *extensionscontroller.Cluster, projectID string) (*Options, error)
func (*Actuator) ForceDelete ¶
func (a *Actuator) ForceDelete(_ context.Context, _ logr.Logger, _ *extensionsv1alpha1.SelfHostedShootExposure, _ *extensionscontroller.Cluster) error
func (*Actuator) Reconcile ¶
func (a *Actuator) Reconcile(ctx context.Context, log logr.Logger, exposure *extensionsv1alpha1.SelfHostedShootExposure, cluster *extensionscontroller.Cluster) ([]corev1.LoadBalancerIngress, error)
type AddOptions ¶
type AddOptions struct {
// Controller are the controller.Options.
Controller controller.Options
// IgnoreOperationAnnotation specifies whether to ignore the operation annotation or not.
IgnoreOperationAnnotation bool
// ExtensionClasses defines the extension class this extension is responsible for.
ExtensionClasses []extensionsv1alpha1.ExtensionClass
}
AddOptions are Options to apply when adding the SelfHostedShootExposure controller to the manager.
type Options ¶
type Options struct {
SelfHostedShootExposure *extensionsv1alpha1.SelfHostedShootExposure
// ProjectID is the STACKIT project ID of the shoot. Currently determined from the cloudprovider (credentials) secret.
ProjectID string
// ResourceName of all STACKIT resources for this SelfHostedShootExposure.
ResourceName string
// Labels added to all STACKIT resources.
Labels map[string]string
// Region for the LB, determined from Cluster.spec.shoot.spec.region (RegionOne is replaced with eu01).
Region string
// NetworkID is the ID of the network where the control plane nodes reside.
NetworkID string
// PlanID specifies the service plan (size) of the load balancer.
PlanID string
// AllowedSourceRanges restricts which source CIDRs may reach the load balancer.
// Empty means unrestricted.
AllowedSourceRanges []string
}
Options contains all input required for creating a STACKIT LB for a self-hosted shoot on STACKIT. The options are determined from the SelfHostedShootExposure and Cluster object.
type Resources ¶
type Resources struct {
Options
LBClient stackitclient.LoadBalancingClient
LoadBalancer *loadbalancer.LoadBalancer
}
Resources holds the STACKIT resources created for a Self-hosted Shoot Exposure along with all inputs (options) and the needed clients.
Click to show internal directories.
Click to hide internal directories.