configuration

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Package configuration contains Kubernetes controllers responsible for configuration.konghq.com grouped API types.

Index

Constants

View Source
const (
	ConditionTypeProgrammed = "Programmed"
	// ConditionReasonPickedAsLatest represents that the KongLicense being picked as the newest one.
	ConditionReasonPickedAsLatest = "PickedAsLatest"
	// ConditionReasonReplacedByNewer represents that the KongLicense is replaced by other one that is newer.
	ConditionReasonReplacedByNewer = "ReplacedByNewer"
)
View Source
const (
	CACertLabelKey = "konghq.com/ca-cert"
)
View Source
const (
	// LicenseControllerType annotates the controller type.
	LicenseControllerType = "konghq.com/kong-ingress-controller"
)

Variables

This section is empty.

Functions

func NewLicenseCache added in v3.1.0

func NewLicenseCache() cache.Store

func WrapKongLicenseReconcilerToDynamicCRDController added in v3.1.0

func WrapKongLicenseReconcilerToDynamicCRDController(
	ctx context.Context, mgr ctrl.Manager, r *KongV1Alpha1KongLicenseReconciler,
) *crds.DynamicCRDController

WrapKongLicenseReconcilerToDynamicCRDController wraps KongLicenseReconciler to DynamicCRDController to watch precense of KongLicense CRD to avoid aborts if KongLicense is not installed when controller initialized.

Types

type AdminAPIsDiscoverer

type AdminAPIsDiscoverer interface {
	AdminAPIsFromEndpointSlice(discoveryv1.EndpointSlice) (
		sets.Set[adminapi.DiscoveredAdminAPI],
		error,
	)
}

type CoreV1SecretReconciler

type CoreV1SecretReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration

	ReferenceIndexers ctrlref.CacheIndexers
}

CoreV1SecretReconciler reconciles Secret resources.

func (*CoreV1SecretReconciler) Reconcile

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

Reconcile processes the watched objects.

func (*CoreV1SecretReconciler) SetLogger

func (r *CoreV1SecretReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

func (*CoreV1SecretReconciler) SetupWithManager

func (r *CoreV1SecretReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CoreV1ServiceReconciler

type CoreV1ServiceReconciler struct {
	client.Client

	Log               logr.Logger
	Scheme            *runtime.Scheme
	DataplaneClient   controllers.DataPlane
	CacheSyncTimeout  time.Duration
	ReferenceIndexers ctrlref.CacheIndexers
}

CoreV1ServiceReconciler reconciles Service resources

func (*CoreV1ServiceReconciler) Reconcile

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

Reconcile processes the watched objects

func (*CoreV1ServiceReconciler) SetLogger

func (r *CoreV1ServiceReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

func (*CoreV1ServiceReconciler) SetupWithManager

func (r *CoreV1ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type DiscoveryV1EndpointSliceReconciler

type DiscoveryV1EndpointSliceReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
}

DiscoveryV1EndpointSliceReconciler reconciles EndpointSlice resources

func (*DiscoveryV1EndpointSliceReconciler) Reconcile

Reconcile processes the watched objects

func (*DiscoveryV1EndpointSliceReconciler) SetLogger

SetLogger sets the logger.

func (*DiscoveryV1EndpointSliceReconciler) SetupWithManager

func (r *DiscoveryV1EndpointSliceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type EndpointsNotifier

type EndpointsNotifier interface {
	Notify(adminAPIs []adminapi.DiscoveredAdminAPI)
}

type IncubatorV1Alpha1KongServiceFacadeReconciler added in v3.1.0

type IncubatorV1Alpha1KongServiceFacadeReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
	StatusQueue      *status.Queue

	IngressClassName           string
	DisableIngressClassLookups bool
}

IncubatorV1Alpha1KongServiceFacadeReconciler reconciles KongServiceFacade resources

func (*IncubatorV1Alpha1KongServiceFacadeReconciler) Reconcile added in v3.1.0

Reconcile processes the watched objects

func (*IncubatorV1Alpha1KongServiceFacadeReconciler) SetLogger added in v3.1.0

SetLogger sets the logger.

func (*IncubatorV1Alpha1KongServiceFacadeReconciler) SetupWithManager added in v3.1.0

SetupWithManager sets up the controller with the Manager.

type KongAdminAPIServiceReconciler

type KongAdminAPIServiceReconciler struct {
	client.Client

	// ServiceNN is the service NamespacedName to watch EndpointSlices for.
	ServiceNN        k8stypes.NamespacedName
	Log              logr.Logger
	CacheSyncTimeout time.Duration
	// EndpointsNotifier is used to notify about Admin API endpoints changes.
	// We're going to call this only with endpoints when they change.
	EndpointsNotifier EndpointsNotifier

	Cache               DiscoveredAdminAPIsCache
	AdminAPIsDiscoverer AdminAPIsDiscoverer
}

KongAdminAPIServiceReconciler reconciles Kong Admin API Service Endpointslices and notifies the provided notifier about those.

func (*KongAdminAPIServiceReconciler) Reconcile

Reconcile processes the watched objects.

func (*KongAdminAPIServiceReconciler) SetLogger

func (r *KongAdminAPIServiceReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

func (*KongAdminAPIServiceReconciler) SetupWithManager

func (r *KongAdminAPIServiceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KongUpstreamPolicyReconciler added in v3.1.0

type KongUpstreamPolicyReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
	StatusQueue      *status.Queue

	// KongServiceFacadeEnabled determines whether the controller should populate the KongUpstreamPolicy's ancestor
	// status for KongServiceFacades.
	KongServiceFacadeEnabled bool
}

KongUpstreamPolicyReconciler reconciles KongUpstreamPolicy resources.

func (*KongUpstreamPolicyReconciler) Reconcile added in v3.1.0

Reconcile processes the watched objects.

func (*KongUpstreamPolicyReconciler) SetLogger added in v3.1.0

func (r *KongUpstreamPolicyReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

func (*KongUpstreamPolicyReconciler) SetupWithManager added in v3.1.0

func (r *KongUpstreamPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KongV1Alpha1IngressClassParametersReconciler

type KongV1Alpha1IngressClassParametersReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
}

KongV1Alpha1IngressClassParametersReconciler reconciles IngressClassParameters resources

func (*KongV1Alpha1IngressClassParametersReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1Alpha1IngressClassParametersReconciler) SetLogger

SetLogger sets the logger.

func (*KongV1Alpha1IngressClassParametersReconciler) SetupWithManager

SetupWithManager sets up the controller with the Manager.

type KongV1Alpha1KongLicenseReconciler added in v3.1.0

type KongV1Alpha1KongLicenseReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	LicenseCache     cache.Store
	CacheSyncTimeout time.Duration
	StatusQueue      *status.Queue
	// ControllerName is the name of the controller to use in `controllerName` field in controller status item.
	ControllerName string
	// contains filtered or unexported fields
}

KongV1Alpha1KongLicenseReconciler reconciles KongLicense resources.

func (*KongV1Alpha1KongLicenseReconciler) GetLicense added in v3.1.0

GetLicense is the interface to get the license in Kong configuration format to use in translator.

func (*KongV1Alpha1KongLicenseReconciler) Reconcile added in v3.1.0

Reconcile processes the watched objects.

func (*KongV1Alpha1KongLicenseReconciler) SetLogger added in v3.1.0

SetLogger sets the logger.

func (*KongV1Alpha1KongLicenseReconciler) SetupWithManager added in v3.1.0

func (r *KongV1Alpha1KongLicenseReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KongV1Alpha1KongVaultReconciler added in v3.1.0

type KongV1Alpha1KongVaultReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
	StatusQueue      *status.Queue

	IngressClassName           string
	DisableIngressClassLookups bool
}

KongV1Alpha1KongVaultReconciler reconciles KongVault resources

func (*KongV1Alpha1KongVaultReconciler) Reconcile added in v3.1.0

Reconcile processes the watched objects

func (*KongV1Alpha1KongVaultReconciler) SetLogger added in v3.1.0

SetLogger sets the logger.

func (*KongV1Alpha1KongVaultReconciler) SetupWithManager added in v3.1.0

func (r *KongV1Alpha1KongVaultReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KongV1Beta1KongConsumerGroupReconciler

type KongV1Beta1KongConsumerGroupReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
	StatusQueue      *status.Queue

	IngressClassName           string
	DisableIngressClassLookups bool
	ReferenceIndexers          ctrlref.CacheIndexers
}

KongV1Beta1KongConsumerGroupReconciler reconciles KongConsumerGroup resources

func (*KongV1Beta1KongConsumerGroupReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1Beta1KongConsumerGroupReconciler) SetLogger

SetLogger sets the logger.

func (*KongV1Beta1KongConsumerGroupReconciler) SetupWithManager

func (r *KongV1Beta1KongConsumerGroupReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KongV1Beta1TCPIngressReconciler

type KongV1Beta1TCPIngressReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration

	DataplaneAddressFinder *dataplane.AddressFinder
	StatusQueue            *status.Queue

	IngressClassName           string
	DisableIngressClassLookups bool
	ReferenceIndexers          ctrlref.CacheIndexers
}

KongV1Beta1TCPIngressReconciler reconciles TCPIngress resources

func (*KongV1Beta1TCPIngressReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1Beta1TCPIngressReconciler) SetLogger

SetLogger sets the logger.

func (*KongV1Beta1TCPIngressReconciler) SetupWithManager

func (r *KongV1Beta1TCPIngressReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KongV1Beta1UDPIngressReconciler

type KongV1Beta1UDPIngressReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration

	DataplaneAddressFinder *dataplane.AddressFinder
	StatusQueue            *status.Queue

	IngressClassName           string
	DisableIngressClassLookups bool
}

KongV1Beta1UDPIngressReconciler reconciles UDPIngress resources

func (*KongV1Beta1UDPIngressReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1Beta1UDPIngressReconciler) SetLogger

SetLogger sets the logger.

func (*KongV1Beta1UDPIngressReconciler) SetupWithManager

func (r *KongV1Beta1UDPIngressReconciler) 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
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration

	IngressClassName           string
	DisableIngressClassLookups bool
	ReferenceIndexers          ctrlref.CacheIndexers
}

KongV1KongClusterPluginReconciler reconciles KongClusterPlugin resources

func (*KongV1KongClusterPluginReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1KongClusterPluginReconciler) SetLogger

SetLogger sets the logger.

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
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
	StatusQueue      *status.Queue

	IngressClassName           string
	DisableIngressClassLookups bool
	ReferenceIndexers          ctrlref.CacheIndexers
}

KongV1KongConsumerReconciler reconciles KongConsumer resources

func (*KongV1KongConsumerReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1KongConsumerReconciler) SetLogger

func (r *KongV1KongConsumerReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

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
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
}

KongV1KongIngressReconciler reconciles KongIngress resources

func (*KongV1KongIngressReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1KongIngressReconciler) SetLogger

func (r *KongV1KongIngressReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

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
	DataplaneClient   controllers.DataPlane
	CacheSyncTimeout  time.Duration
	ReferenceIndexers ctrlref.CacheIndexers
}

KongV1KongPluginReconciler reconciles KongPlugin resources

func (*KongV1KongPluginReconciler) Reconcile

Reconcile processes the watched objects

func (*KongV1KongPluginReconciler) SetLogger

func (r *KongV1KongPluginReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

func (*KongV1KongPluginReconciler) SetupWithManager

func (r *KongV1KongPluginReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type NetV1IngressClassReconciler

type NetV1IngressClassReconciler struct {
	client.Client

	Log              logr.Logger
	Scheme           *runtime.Scheme
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration
}

NetV1IngressClassReconciler reconciles IngressClass resources

func (*NetV1IngressClassReconciler) Reconcile

Reconcile processes the watched objects

func (*NetV1IngressClassReconciler) SetLogger

func (r *NetV1IngressClassReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

func (*NetV1IngressClassReconciler) SetupWithManager

func (r *NetV1IngressClassReconciler) 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
	DataplaneClient  controllers.DataPlane
	CacheSyncTimeout time.Duration

	DataplaneAddressFinder *dataplane.AddressFinder
	StatusQueue            *status.Queue

	IngressClassName           string
	DisableIngressClassLookups bool
	ReferenceIndexers          ctrlref.CacheIndexers
}

NetV1IngressReconciler reconciles Ingress resources

func (*NetV1IngressReconciler) Reconcile

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

Reconcile processes the watched objects

func (*NetV1IngressReconciler) SetLogger

func (r *NetV1IngressReconciler) SetLogger(l logr.Logger)

SetLogger sets the logger.

func (*NetV1IngressReconciler) SetupWithManager

func (r *NetV1IngressReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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