controllers

package
v0.0.0-...-1d7089e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartManager

func StartManager()

Types

type ControllerContext

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

func (*ControllerContext) CheckForARecords

func (c *ControllerContext) CheckForARecords() error

func (*ControllerContext) Destroy

func (c *ControllerContext) Destroy(namespace string)

func (*ControllerContext) Initialize

func (c *ControllerContext) Initialize(config *data.MonitorConfig, client client.Client, namespace string)

func (*ControllerContext) Reconcile

func (c *ControllerContext) Reconcile()

func (*ControllerContext) Update

func (c *ControllerContext) Update(pod *corev1.Pod)

type NamespaceReconciler

type NamespaceReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Config  *data.MonitorConfig
	Context *ControllerContext
}

NamespaceReconciler reconciles a HaproxyMetal object

func (*NamespaceReconciler) Reconcile

func (r *NamespaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=v1,resources=namespaces,verbs=get;list;watch;create;update;patch;delete

func (*NamespaceReconciler) SetupWithManager

func (r *NamespaceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type PodReconciler

type PodReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Context *ControllerContext
}

PodReconciler reconciles a HaproxyMetal object

func (*PodReconciler) Reconcile

func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=v1,resources=pods,verbs=get;list;watch;create;update;patch;delete

func (*PodReconciler) SetupWithManager

func (r *PodReconciler) 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