controllers

package
v0.7.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelGatewayReference  = "kuadrant.io/gateway"
	LabelGatewayNSRef      = "kuadrant.io/gateway-namespace"
	LabelListenerReference = "kuadrant.io/listener-name"

	DefaultTTL      = 60
	DefaultCnameTTL = 300
)
View Source
const (
	ReadyConditionType string = "Ready"

	PolicyReasonUnknown string = "Unknown"
)
View Source
const DNSPolicyFinalizer = "kuadrant.io/dns-policy"
View Source
const (
	HTTPRouteGatewayParentField = ".metadata.parentRefs.gateway"
)
View Source
const PolicyAffectedConditionPattern = "kuadrant.io/%sAffected" // Policy kinds are expected to be named XPolicy
View Source
const TLSPolicyFinalizer = "kuadrant.io/tls-policy"

Variables

View Source
var (
	ErrUnknownRoutingStrategy = fmt.Errorf("unknown routing strategy")
	ErrNoManagedZoneForHost   = fmt.Errorf("no managed zone for host")
)
View Source
var KuadrantExtAuthProviderName = env.GetString("AUTH_PROVIDER", "kuadrant-authorization")
View Source
var NegativePolarityConditions []string

Functions

This section is empty.

Types

type AuthPolicyReconciler added in v0.2.0

type AuthPolicyReconciler struct {
	*reconcilers.BaseReconciler
	TargetRefReconciler reconcilers.TargetRefReconciler
	// AffectedPolicyMap tracks the affected policies to report their status.
	AffectedPolicyMap *kuadrant.AffectedPolicyMap
}

AuthPolicyReconciler reconciles a AuthPolicy object

func (*AuthPolicyReconciler) Reconcile added in v0.2.0

func (r *AuthPolicyReconciler) Reconcile(eventCtx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*AuthPolicyReconciler) SetupWithManager added in v0.2.0

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

SetupWithManager sets up the controller with the Manager.

type DNSPolicyReconciler added in v0.7.0

type DNSPolicyReconciler struct {
	*reconcilers.BaseReconciler
	TargetRefReconciler reconcilers.TargetRefReconciler
	// contains filtered or unexported fields
}

DNSPolicyReconciler reconciles a DNSPolicy object

func (*DNSPolicyReconciler) Reconcile added in v0.7.0

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

func (*DNSPolicyReconciler) SetupWithManager added in v0.7.0

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

type DNSPolicyRefsConfig added in v0.7.0

type DNSPolicyRefsConfig struct{}

type GatewayKuadrantReconciler added in v0.4.0

type GatewayKuadrantReconciler struct {
	*reconcilers.BaseReconciler
}

GatewayKuadrantReconciler is responsible of assiging gateways to a kuadrant instances Currently only one kuadrant instance is allowed per cluster This controller will annotate every gateway in the cluster with the namespace of the kuadrant instance TODO: After the RFC defined, we might want to get the gw to label/annotate from Kuadrant.Spec or manual labeling/annotation

func (*GatewayKuadrantReconciler) Reconcile added in v0.4.0

func (r *GatewayKuadrantReconciler) Reconcile(eventCtx context.Context, req ctrl.Request) (ctrl.Result, error)

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*GatewayKuadrantReconciler) SetupWithManager added in v0.4.0

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

SetupWithManager sets up the controller with the Manager.

type HTTPRouteParentRefsEventMapper added in v0.4.0

type HTTPRouteParentRefsEventMapper struct {
	Logger logr.Logger
	Client client.Client
}

HTTPRouteParentRefsEventMapper is an EventHandler that maps HTTPRoute events to policy events, by going through the parentRefs of the route and finding all policies that target one of its parent resources, thus yielding events for those policies.

func (*HTTPRouteParentRefsEventMapper) MapToAuthPolicy added in v0.4.0

func (m *HTTPRouteParentRefsEventMapper) MapToAuthPolicy(obj client.Object) []reconcile.Request

func (*HTTPRouteParentRefsEventMapper) MapToRateLimitPolicy added in v0.4.0

func (m *HTTPRouteParentRefsEventMapper) MapToRateLimitPolicy(obj client.Object) []reconcile.Request

type KuadrantReconciler

type KuadrantReconciler struct {
	*reconcilers.BaseReconciler
}

KuadrantReconciler reconciles a Kuadrant object

func (*KuadrantReconciler) Reconcile

func (r *KuadrantReconciler) Reconcile(eventCtx 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. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*KuadrantReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type LimitadorClusterEnvoyFilterReconciler added in v0.4.0

type LimitadorClusterEnvoyFilterReconciler struct {
	*reconcilers.BaseReconciler
}

LimitadorClusterEnvoyFilterReconciler reconciles a EnvoyFilter object with limitador's cluster

func (*LimitadorClusterEnvoyFilterReconciler) Reconcile added in v0.4.0

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*LimitadorClusterEnvoyFilterReconciler) SetupWithManager added in v0.4.0

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

SetupWithManager sets up the controller with the Manager.

type RateLimitPolicyReconciler added in v0.2.0

type RateLimitPolicyReconciler struct {
	*reconcilers.BaseReconciler
	TargetRefReconciler reconcilers.TargetRefReconciler
	// AffectedPolicyMap tracks the affected policies to report their status.
	AffectedPolicyMap *kuadrant.AffectedPolicyMap
}

RateLimitPolicyReconciler reconciles a RateLimitPolicy object

func (*RateLimitPolicyReconciler) Reconcile added in v0.2.0

func (r *RateLimitPolicyReconciler) Reconcile(eventCtx 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 RateLimitPolicy 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.10.0/pkg/reconcile

func (*RateLimitPolicyReconciler) SetupWithManager added in v0.2.0

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

SetupWithManager sets up the controller with the Manager.

type RateLimitingWASMPluginReconciler added in v0.7.0

type RateLimitingWASMPluginReconciler struct {
	*reconcilers.BaseReconciler
}

RateLimitingWASMPluginReconciler reconciles a WASMPlugin object for rate limiting

func (*RateLimitingWASMPluginReconciler) Reconcile added in v0.7.0

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*RateLimitingWASMPluginReconciler) SetupWithManager added in v0.7.0

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

SetupWithManager sets up the controller with the Manager.

type TLSPolicyReconciler added in v0.7.0

type TLSPolicyReconciler struct {
	*reconcilers.BaseReconciler
	TargetRefReconciler reconcilers.TargetRefReconciler
}

TLSPolicyReconciler reconciles a TLSPolicy object

func (*TLSPolicyReconciler) FetchValidGateway added in v0.7.0

func (r *TLSPolicyReconciler) FetchValidGateway(ctx context.Context, key client.ObjectKey) (*gatewayapiv1.Gateway, error)

func (*TLSPolicyReconciler) Reconcile added in v0.7.0

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

func (*TLSPolicyReconciler) SetupWithManager added in v0.7.0

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

SetupWithManager sets up the controller with the Manager.

type TargetStatusReconciler added in v0.7.0

type TargetStatusReconciler struct {
	*reconcilers.BaseReconciler
}

TargetStatusReconciler reconciles a the status stanzas of objects targeted by Kuadrant policies

func (*TargetStatusReconciler) Reconcile added in v0.7.0

func (r *TargetStatusReconciler) Reconcile(eventCtx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TargetStatusReconciler) SetupWithManager added in v0.7.0

func (r *TargetStatusReconciler) 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