Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func DefaultPredicates() []predicate.Predicate
- func GenerationChangedPredicate() predicate.Predicate
- type AddArgs
- type ReconcileNetworkTrafficShaper
- func (r *ReconcileNetworkTrafficShaper) InjectClient(client client.Client) error
- func (r *ReconcileNetworkTrafficShaper) InjectConfig(config *rest.Config) error
- func (r *ReconcileNetworkTrafficShaper) InjectStopChannel(stopCh <-chan struct{}) error
- func (r *ReconcileNetworkTrafficShaper) Reconcile(request reconcile.Request) (reconcile.Result, error)
Constants ¶
View Source
const ( // FinalizerName is the controlplane controller finalizer. FinalizerName = "networkmachinery.io/networkmonitor" LogKey = "network-traffic-shaper" )
View Source
const Name = "network-trafficshaper-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 ReconcileNetworkTrafficShaper ¶
type ReconcileNetworkTrafficShaper struct {
// contains filtered or unexported fields
}
ReconcileMachineDeployment reconciles a MachineDeployment object.
func (*ReconcileNetworkTrafficShaper) InjectClient ¶
func (r *ReconcileNetworkTrafficShaper) InjectClient(client client.Client) error
func (*ReconcileNetworkTrafficShaper) InjectConfig ¶
func (r *ReconcileNetworkTrafficShaper) InjectConfig(config *rest.Config) error
InjectConfig implements inject.Config.
func (*ReconcileNetworkTrafficShaper) InjectStopChannel ¶
func (r *ReconcileNetworkTrafficShaper) InjectStopChannel(stopCh <-chan struct{}) error
Click to show internal directories.
Click to hide internal directories.