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.
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) SetupWithManager ¶
func (w *NodeJoinWatcher) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.