Documentation ¶
Overview ¶
Package ingress implements a kubernetes controller which tracks Ingress resource and reconcile VirtualService as its child resource.
Index ¶
- 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) GetIstioClient() istioclientset.Interface
- func (r *Reconciler) GetKubeClient() kubernetes.Interface
- func (r *Reconciler) GetSecretLister() corev1listers.SecretLister
- func (r *Reconciler) GetVirtualServiceLister() istiolisters.VirtualServiceLister
- func (r *Reconciler) Reconcile(ctx context.Context, key string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController works as a constructor for Ingress Controller
func NewProbeTargetLister ¶ added in v0.12.0
func NewProbeTargetLister( logger *zap.SugaredLogger, gatewayLister istiolisters.GatewayLister, endpointsLister corev1listers.EndpointsLister, serviceLister corev1listers.ServiceLister) status.ProbeTargetLister
Types ¶
type Reconciler ¶
type Reconciler struct { *reconciler.Base // contains filtered or unexported fields }
Reconciler implements the control loop for the Ingress resources.
func (*Reconciler) GetIstioClient ¶ added in v0.11.0
func (r *Reconciler) GetIstioClient() istioclientset.Interface
GetIstioClient returns the client to access Istio resources.
func (*Reconciler) GetKubeClient ¶ added in v0.11.0
func (r *Reconciler) GetKubeClient() kubernetes.Interface
GetKubeClient returns the client to access k8s resources.
func (*Reconciler) GetSecretLister ¶ added in v0.11.0
func (r *Reconciler) GetSecretLister() corev1listers.SecretLister
GetSecretLister returns the lister for Secret.
func (*Reconciler) GetVirtualServiceLister ¶ added in v0.11.0
func (r *Reconciler) GetVirtualServiceLister() istiolisters.VirtualServiceLister
GetVirtualServiceLister returns the lister for VirtualService.
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. |
Click to show internal directories.
Click to hide internal directories.