Documentation ¶
Overview ¶
Package ingress implements a kubernetes controller which tracks Ingress resource and reconcile VirtualService as its child resource.
Index ¶
- func AnnotateLoggerWithName(ctx context.Context, name string) context.Context
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- func NewProbeTargetLister(logger *zap.SugaredLogger, gatewayLister istiolisters.GatewayLister, ...) status.ProbeTargetLister
- type Reconciler
- func (r *Reconciler) FinalizeKind(ctx context.Context, ing *v1alpha1.Ingress) pkgreconciler.Event
- func (r *Reconciler) GetIstioClient() istioclientset.Interface
- func (r *Reconciler) GetKubeClient() kubernetes.Interface
- func (r *Reconciler) GetSecretLister() corev1listers.SecretLister
- func (r *Reconciler) GetVirtualServiceLister() istiolisters.VirtualServiceLister
- func (r *Reconciler) ReconcileKind(ctx context.Context, ingress *v1alpha1.Ingress) pkgreconciler.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateLoggerWithName ¶ added in v0.17.0
AnnotateLoggerWithName names the logger in the context with the supplied name
This is a stop gap until the generated reconcilers can do this automatically for you
func NewController ¶
NewController works as a constructor for Ingress Controller
func NewProbeTargetLister ¶
func NewProbeTargetLister( logger *zap.SugaredLogger, gatewayLister istiolisters.GatewayLister, endpointsLister corev1listers.EndpointsLister, serviceLister corev1listers.ServiceLister) status.ProbeTargetLister
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements the control loop for the Ingress resources.
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, ing *v1alpha1.Ingress) pkgreconciler.Event
func (*Reconciler) GetIstioClient ¶
func (r *Reconciler) GetIstioClient() istioclientset.Interface
GetIstioClient returns the client to access Istio resources.
func (*Reconciler) GetKubeClient ¶
func (r *Reconciler) GetKubeClient() kubernetes.Interface
GetKubeClient returns the client to access k8s resources.
func (*Reconciler) GetSecretLister ¶
func (r *Reconciler) GetSecretLister() corev1listers.SecretLister
GetSecretLister returns the lister for Secret.
func (*Reconciler) GetVirtualServiceLister ¶
func (r *Reconciler) GetVirtualServiceLister() istiolisters.VirtualServiceLister
GetVirtualServiceLister returns the lister for VirtualService.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, ingress *v1alpha1.Ingress) pkgreconciler.Event
Reconcile compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the Ingress resource with the current status of the resource.
Directories ¶
Path | Synopsis |
---|---|
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Ingress controller depends.
|
Package config holds the typed objects that define the schemas for assorted ConfigMap objects on which the Ingress controller depends. |
Package resources holds simple functions for synthesizing child resources from an Ingress resource and any relevant Ingress controller configuration.
|
Package resources holds simple functions for synthesizing child resources from an Ingress resource and any relevant Ingress controller configuration. |
names
Package names holds simple functions for synthesizing resource names.
|
Package names holds simple functions for synthesizing resource names. |