Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDistributionController ¶
func NewDistributionController(mgr ctrl.Manager, logger logr.Logger) error
SetupWithManager sets up the controller with the Manager.
func NewIngressController ¶
func NewIngressController(mgr ctrl.Manager, ingressService string) error
Creates a new IngressController
Types ¶
type DistributionReconciler ¶
type DistributionReconciler struct {
resolver.DistributionClassReader
// Used to load the required certificate for the distribution's TLS
// settings
CertificateResolver resolver.CertificateResolver
// List of providers supported
Providers []provider.CDNProvider
// The generic Logger interface for the reconciller
Logger logr.Logger
// contains filtered or unexported fields
}
func (*DistributionReconciler) Reconcile ¶
func (r *DistributionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Main function called when a reconciliation is required
This method's primary job is loading up the resources in question (the Distribution and associated DistributionClass or ClusterDistributionClass), and then kicking off either a reconciliation job or a deletion job.
type IngressReconciler ¶
type IngressReconciler struct {
client.Client
// The current scheme we are working with
Scheme *runtime.Scheme
IngressService *client.ObjectKey
}
Click to show internal directories.
Click to hide internal directories.