clusteringress

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package clusteringress implements a kubernetes controller which tracks ClusterIngress resource and reconcile VirtualService as its child resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(
	ctx context.Context,
	cmw configmap.Watcher,
) *controller.Impl

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 added in v0.8.0

func (r *Reconciler) GetIngress(ns, name string) (v1alpha1.IngressAccessor, error)

GetIngress returns a ClusterIngress object of type IngressAccessor

func (*Reconciler) Init added in v0.8.0

func (c *Reconciler) Init(ctx context.Context, cmw configmap.Watcher, impl *controller.Impl)

Init method performs initializations to ingress reconciler

func (*Reconciler) PatchIngress added in v0.8.0

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 added in v0.8.0

func (c *Reconciler) SetTracker(tracker tracker.Interface)

SetTracker assigns the Tracker field

func (*Reconciler) UpdateIngress added in v0.8.0

UpdateIngress invokes APIs to Update a ClusterIngress

func (*Reconciler) UpdateIngressStatus added in v0.8.0

func (r *Reconciler) UpdateIngressStatus(ia v1alpha1.IngressAccessor) (v1alpha1.IngressAccessor, error)

UpdateIngressStatus invokes APIs to Update an IngressStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL