Documentation
¶
Index ¶
- Constants
- func RuleForResource(gr metav1.GroupResource) admissionregistrationv1.RuleWithOperations
- func WebhookConfigForControllerRing(controllerRing *shardingv1alpha1.ControllerRing, ...) *admissionregistrationv1.MutatingWebhookConfiguration
- func WebhookForControllerRing(controllerRing *shardingv1alpha1.ControllerRing, ...) admissionregistrationv1.MutatingWebhook
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager) error
- func (r *Reconciler) LeasePredicate() predicate.Predicate
- func (r *Reconciler) OptionallyUpdateStatus(ctx context.Context, controllerRing, before *shardingv1alpha1.ControllerRing, ...) error
- func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
- func (r *Reconciler) WebhookConfigForControllerRing(controllerRing *shardingv1alpha1.ControllerRing) (*admissionregistrationv1.MutatingWebhookConfiguration, error)
Constants ¶
View Source
const ControllerName = "controllerring"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
func RuleForResource ¶
func RuleForResource(gr metav1.GroupResource) admissionregistrationv1.RuleWithOperations
RuleForResource returns the sharder's webhook rule for the given resource.
func WebhookConfigForControllerRing ¶ added in v0.10.0
func WebhookConfigForControllerRing(controllerRing *shardingv1alpha1.ControllerRing, config *configv1alpha1.WebhookConfig) *admissionregistrationv1.MutatingWebhookConfiguration
func WebhookForControllerRing ¶ added in v0.10.0
func WebhookForControllerRing(controllerRing *shardingv1alpha1.ControllerRing, config *configv1alpha1.WebhookConfig) admissionregistrationv1.MutatingWebhook
Types ¶
type Reconciler ¶
type Reconciler struct { Client client.Client Recorder record.EventRecorder Clock clock.PassiveClock Config *configv1alpha1.SharderConfig }
Reconciler reconciles ControllerRings.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) LeasePredicate ¶
func (r *Reconciler) LeasePredicate() predicate.Predicate
func (*Reconciler) OptionallyUpdateStatus ¶ added in v0.10.0
func (r *Reconciler) OptionallyUpdateStatus(ctx context.Context, controllerRing, before *shardingv1alpha1.ControllerRing, mutate func(ready *metav1.Condition)) error
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile reconciles a ControllerRing object.
func (*Reconciler) WebhookConfigForControllerRing ¶ added in v0.10.0
func (r *Reconciler) WebhookConfigForControllerRing(controllerRing *shardingv1alpha1.ControllerRing) (*admissionregistrationv1.MutatingWebhookConfiguration, error)
Click to show internal directories.
Click to hide internal directories.