sgreconciler

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package sgreconciler contains a reconciler that reconciles on cloud provider infrastructure. It is used to create, delete and update the spec of infrastructure-related k8s resources based on the actual state of the infrastructure. It uses polling (with additional triggers) to check the state of the infrastructure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalScalingGroupReconciler

type ExternalScalingGroupReconciler struct {
	// contains filtered or unexported fields
}

ExternalScalingGroupReconciler reconciles on scaling groups in CSP infrastructure. It does NOT reconcile on k8s resources. Instead, it scans the cloud provider infrastructure and changes k8s resources accordingly.

func NewExternalScalingGroupReconciler

func NewExternalScalingGroupReconciler(uid string, discoverer scalingGroupDiscoverer, k8sClient k8sReadWriter) *ExternalScalingGroupReconciler

NewExternalScalingGroupReconciler creates a new InfrastructureReconciler.

func (*ExternalScalingGroupReconciler) Reconcile

Reconcile reconciles on scaling groups in CSP infrastructure.

type NodeJoinWatcher

type NodeJoinWatcher struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

NodeJoinWatcher watches node join / leave events.

func NewNodeJoinWatcher

func NewNodeJoinWatcher(trigger func(), client client.Client, scheme *runtime.Scheme) *NodeJoinWatcher

NewNodeJoinWatcher creates a new NodeJoinWatcher.

func (*NodeJoinWatcher) Reconcile

func (w *NodeJoinWatcher) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles node join / leave events.

func (*NodeJoinWatcher) SetupWithManager

func (w *NodeJoinWatcher) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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