Documentation
¶
Overview ¶
Package configuration implements the proxy instance configuration controller.
Index ¶
- Constants
- func IsAPIAvailable(mgr ctrl.Manager, obj client.Object) (bool, error)
- func SetupIngressControllers(mgr ctrl.Manager) error
- type ExtV1Beta1IngressReconciler
- type KongClusterPluginReconciler
- type KongConsumerReconciler
- type KongIngressReconciler
- type KongPluginReconciler
- type KongV1KongClusterPluginReconciler
- type KongV1KongConsumerReconciler
- type KongV1KongIngressReconciler
- type KongV1KongPluginReconciler
- type KongV1UDPIngressReconciler
- type NetV1Beta1IngressReconciler
- type NetV1IngressReconciler
- type SecretReconciler
- type SecretReconcilerParams
Constants ¶
const KongIngressFinalizer = "configuration.konghq.com/ingress"
KongIngressFinalizer is the finalizer used to ensure Kong configuration cleanup for deleted Ingress resources.
Variables ¶
This section is empty.
Functions ¶
func IsAPIAvailable ¶
IsAPIAvailable is a hack to short circuit controllers for APIs which aren't available on the cluster, enabling us to keep separate logic and logging for some legacy API versions.
func SetupIngressControllers ¶
SetupIngressControllers validates which ingress controllers need to be configured and sets them up with the provided controller manager.
Types ¶
type ExtV1Beta1IngressReconciler ¶
ExtV1Beta1Ingress reconciles a Ingress object
func (*ExtV1Beta1IngressReconciler) Reconcile ¶
func (r *ExtV1Beta1IngressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*ExtV1Beta1IngressReconciler) SetupWithManager ¶
func (r *ExtV1Beta1IngressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongClusterPluginReconciler ¶
KongClusterPluginReconciler reconciles a KongClusterPlugin object
func (*KongClusterPluginReconciler) Reconcile ¶
func (r *KongClusterPluginReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the KongClusterPlugin object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*KongClusterPluginReconciler) SetupWithManager ¶
func (r *KongClusterPluginReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongConsumerReconciler ¶
KongConsumerReconciler reconciles a KongConsumer object
func (*KongConsumerReconciler) Reconcile ¶
func (r *KongConsumerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the KongConsumer object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*KongConsumerReconciler) SetupWithManager ¶
func (r *KongConsumerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongIngressReconciler ¶
KongIngressReconciler reconciles a KongIngress object
func (*KongIngressReconciler) Reconcile ¶
func (r *KongIngressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the KongIngress object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*KongIngressReconciler) SetupWithManager ¶
func (r *KongIngressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongPluginReconciler ¶
KongPluginReconciler reconciles a KongPlugin object
func (*KongPluginReconciler) Reconcile ¶
func (r *KongPluginReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the KongPlugin object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.0/pkg/reconcile
func (*KongPluginReconciler) SetupWithManager ¶
func (r *KongPluginReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongV1KongClusterPluginReconciler ¶
type KongV1KongClusterPluginReconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
}
KongV1KongClusterPlugin reconciles a Ingress object
func (*KongV1KongClusterPluginReconciler) Reconcile ¶
func (r *KongV1KongClusterPluginReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*KongV1KongClusterPluginReconciler) SetupWithManager ¶
func (r *KongV1KongClusterPluginReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongV1KongConsumerReconciler ¶
KongV1KongConsumer reconciles a Ingress object
func (*KongV1KongConsumerReconciler) Reconcile ¶
func (r *KongV1KongConsumerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*KongV1KongConsumerReconciler) SetupWithManager ¶
func (r *KongV1KongConsumerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongV1KongIngressReconciler ¶
KongV1KongIngress reconciles a Ingress object
func (*KongV1KongIngressReconciler) Reconcile ¶
func (r *KongV1KongIngressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*KongV1KongIngressReconciler) SetupWithManager ¶
func (r *KongV1KongIngressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongV1KongPluginReconciler ¶
KongV1KongPlugin reconciles a Ingress object
func (*KongV1KongPluginReconciler) Reconcile ¶
func (r *KongV1KongPluginReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*KongV1KongPluginReconciler) SetupWithManager ¶
func (r *KongV1KongPluginReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongV1UDPIngressReconciler ¶
KongV1UDPIngress reconciles a Ingress object
func (*KongV1UDPIngressReconciler) Reconcile ¶
func (r *KongV1UDPIngressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*KongV1UDPIngressReconciler) SetupWithManager ¶
func (r *KongV1UDPIngressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NetV1Beta1IngressReconciler ¶
NetV1Beta1Ingress reconciles a Ingress object
func (*NetV1Beta1IngressReconciler) Reconcile ¶
func (r *NetV1Beta1IngressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*NetV1Beta1IngressReconciler) SetupWithManager ¶
func (r *NetV1Beta1IngressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NetV1IngressReconciler ¶
NetV1Ingress reconciles a Ingress object
func (*NetV1IngressReconciler) Reconcile ¶
func (r *NetV1IngressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes the watched objects
func (*NetV1IngressReconciler) SetupWithManager ¶
func (r *NetV1IngressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SecretReconciler ¶
type SecretReconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
Params SecretReconcilerParams
}
SecretReconciler reconciles a Secret object
func (*SecretReconciler) Reconcile ¶
Reconcile manages the configuration secret for ingresses and parses that into a Kong configuration which is posted to all available Proxy APIs.
func (*SecretReconciler) SetupWithManager ¶
func (r *SecretReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type SecretReconcilerParams ¶
type SecretReconcilerParams struct {
WatchName string
WatchNamespace string
KongConfig sendconfig.Kong
}