Documentation ¶
Index ¶
- func StartManager()
- type ControllerContext
- func (c *ControllerContext) CheckForARecords() error
- func (c *ControllerContext) Destroy(namespace string)
- func (c *ControllerContext) Initialize(config *data.MonitorConfig, client client.Client, namespace string)
- func (c *ControllerContext) Reconcile()
- func (c *ControllerContext) Update(pod *corev1.Pod)
- type NamespaceReconciler
- type PodReconciler
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 ¶
+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 ¶
+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.
Click to show internal directories.
Click to hide internal directories.