configuration

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package configuration implements the proxy instance configuration controller.

Index

Constants

View Source
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

func IsAPIAvailable(mgr ctrl.Manager, obj client.Object) (bool, error)

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

func SetupIngressControllers(mgr ctrl.Manager) error

SetupIngressControllers validates which ingress controllers need to be configured and sets them up with the provided controller manager.

Types

type ExtV1Beta1IngressReconciler

type ExtV1Beta1IngressReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ExtV1Beta1Ingress reconciles a Ingress object

func (*ExtV1Beta1IngressReconciler) Reconcile

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

type KongClusterPluginReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

KongClusterPluginReconciler reconciles a KongClusterPlugin object

func (*KongClusterPluginReconciler) Reconcile

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

type KongConsumerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

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

type KongIngressReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

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

type KongPluginReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

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

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

type KongV1KongConsumerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

KongV1KongConsumer reconciles a Ingress object

func (*KongV1KongConsumerReconciler) Reconcile

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

type KongV1KongIngressReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

KongV1KongIngress reconciles a Ingress object

func (*KongV1KongIngressReconciler) Reconcile

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

type KongV1KongPluginReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

KongV1KongPlugin reconciles a Ingress object

func (*KongV1KongPluginReconciler) Reconcile

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

type KongV1UDPIngressReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

KongV1UDPIngress reconciles a Ingress object

func (*KongV1UDPIngressReconciler) Reconcile

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

type NetV1Beta1IngressReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

NetV1Beta1Ingress reconciles a Ingress object

func (*NetV1Beta1IngressReconciler) Reconcile

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

type NetV1IngressReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

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

func (r *SecretReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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