Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func DefaultPredicates() []predicate.Predicate
- func Equal(t1 *v1alpha1.Threshold, t2 *v1alpha1.Threshold) bool
- func GenerationChangedPredicate() predicate.Predicate
- type AddArgs
- type ReconcileNetworkMonitor
- func (r *ReconcileNetworkMonitor) CheckEvents(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) ([]v1alpha1.Event, error)
- func (r *ReconcileNetworkMonitor) DeleteFlows(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
- func (r *ReconcileNetworkMonitor) DeleteThresholds(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
- func (r *ReconcileNetworkMonitor) InjectClient(client client.Client) error
- func (r *ReconcileNetworkMonitor) InjectStopChannel(stopCh <-chan struct{}) error
- func (r *ReconcileNetworkMonitor) InstallFlows(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
- func (r *ReconcileNetworkMonitor) InstallThresholds(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
- func (r *ReconcileNetworkMonitor) Reconcile(request reconcile.Request) (reconcile.Result, error)
Constants ¶
View Source
const ( // FinalizerName is the controlplane controller finalizer. FinalizerName = "networkmachinery.io/networkmonitor" NetworkNotification = "network-notification-" ContentType = "Content-Type" ApplicationJSON = "application/json" )
View Source
const Name = "network-monitor-controller"
Variables ¶
This section is empty.
Functions ¶
func DefaultPredicates ¶
DefaultPredicates returns the default predicates for an infrastructure reconciler.
func GenerationChangedPredicate ¶
GenerationChangedPredicate is a predicate for generation changes.
Types ¶
type AddArgs ¶
type AddArgs struct { // Reconciler Reconciler reconcile.Reconciler // ControllerOptions are the controller options used for creating a controller. // The options.Reconciler is always overridden with a reconciler created from the // given actuator. ControllerOptions controller.Options // Predicates are the predicates to use. // If unset, GenerationChangedPredicate will be used. Predicates []predicate.Predicate }
type ReconcileNetworkMonitor ¶
type ReconcileNetworkMonitor struct {
// contains filtered or unexported fields
}
ReconcileMachineDeployment reconciles a MachineDeployment object.
func (*ReconcileNetworkMonitor) CheckEvents ¶
func (r *ReconcileNetworkMonitor) CheckEvents(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) ([]v1alpha1.Event, error)
func (*ReconcileNetworkMonitor) DeleteFlows ¶
func (r *ReconcileNetworkMonitor) DeleteFlows(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
func (*ReconcileNetworkMonitor) DeleteThresholds ¶
func (r *ReconcileNetworkMonitor) DeleteThresholds(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
func (*ReconcileNetworkMonitor) InjectClient ¶
func (r *ReconcileNetworkMonitor) InjectClient(client client.Client) error
func (*ReconcileNetworkMonitor) InjectStopChannel ¶
func (r *ReconcileNetworkMonitor) InjectStopChannel(stopCh <-chan struct{}) error
func (*ReconcileNetworkMonitor) InstallFlows ¶
func (r *ReconcileNetworkMonitor) InstallFlows(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
func (*ReconcileNetworkMonitor) InstallThresholds ¶
func (r *ReconcileNetworkMonitor) InstallThresholds(ctx context.Context, networkMonitor *v1alpha1.NetworkMonitor) error
Click to show internal directories.
Click to hide internal directories.