Documentation ¶
Overview ¶
Package clusteringress implements a kubernetes controller which tracks ClusterIngress resource and reconcile VirtualService as its child resource.
Index ¶
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- type Reconciler
- func (r *Reconciler) GetIngress(ns, name string) (v1alpha1.IngressAccessor, error)
- func (c *Reconciler) Init(ctx context.Context, cmw configmap.Watcher, impl *controller.Impl)
- func (r *Reconciler) PatchIngress(ns, name string, pt types.PatchType, data []byte, subresources ...string) (v1alpha1.IngressAccessor, error)
- func (c *Reconciler) Reconcile(ctx context.Context, key string) error
- func (c *Reconciler) SetTracker(tracker tracker.Interface)
- func (r *Reconciler) UpdateIngress(ia v1alpha1.IngressAccessor) (v1alpha1.IngressAccessor, error)
- func (r *Reconciler) UpdateIngressStatus(ia v1alpha1.IngressAccessor) (v1alpha1.IngressAccessor, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController works as a constructor for Ingress Controller
Types ¶
type Reconciler ¶
type Reconciler struct { *ing.BaseIngressReconciler // contains filtered or unexported fields }
Reconciler implements controller.Reconciler for ClusterIngress resources.
func (*Reconciler) GetIngress ¶
func (r *Reconciler) GetIngress(ns, name string) (v1alpha1.IngressAccessor, error)
GetIngress returns a ClusterIngress object of type IngressAccessor
func (*Reconciler) Init ¶
func (c *Reconciler) Init(ctx context.Context, cmw configmap.Watcher, impl *controller.Impl)
Init method performs initializations to ingress reconciler
func (*Reconciler) PatchIngress ¶
func (r *Reconciler) PatchIngress(ns, name string, pt types.PatchType, data []byte, subresources ...string) (v1alpha1.IngressAccessor, error)
PatchIngress invokes APIs to Patch a ClusterIngress
func (*Reconciler) Reconcile ¶
func (c *Reconciler) Reconcile(ctx context.Context, key string) error
Reconcile compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the ClusterIngress resource with the current status of the resource.
func (*Reconciler) SetTracker ¶
func (c *Reconciler) SetTracker(tracker tracker.Interface)
SetTracker assigns the Tracker field
func (*Reconciler) UpdateIngress ¶
func (r *Reconciler) UpdateIngress(ia v1alpha1.IngressAccessor) (v1alpha1.IngressAccessor, error)
UpdateIngress invokes APIs to Update a ClusterIngress
func (*Reconciler) UpdateIngressStatus ¶
func (r *Reconciler) UpdateIngressStatus(ia v1alpha1.IngressAccessor) (v1alpha1.IngressAccessor, error)
UpdateIngressStatus invokes APIs to Update an IngressStatus