Documentation ¶
Index ¶
Constants ¶
View Source
const ControllerName = "service.k-ngrok.io/controller"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceReconciler ¶
type ServiceReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder LoadBalancerClass string }
ServiceReconciler reconciles a Service object
func (*ServiceReconciler) Reconcile ¶
func (r *ServiceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*ServiceReconciler) ServiceWithLoadBalancerClass ¶
func (r *ServiceReconciler) ServiceWithLoadBalancerClass() predicate.Predicate
ServiceWithLoadBalancerClass returns predicate funcs that filter the service with given LoadBalancer class name on CREATE, UPDATE, DELETE and GENERIC events.
func (*ServiceReconciler) SetupWithManager ¶
func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.