dp

package
v0.0.0-...-c10446a Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace

func GetNamespace(namespace *gwapiv1.Namespace, defaultNamespace string) string

GetNamespace reads namespace with a default value

func NamespacedName

func NamespacedName(obj client.Object) types.NamespacedName

NamespacedName generates namespaced name for Kubernetes objects

func NewAIRatelimitController

func NewAIRatelimitController(mgr manager.Manager, ratelimitStore *cache.RatelimitDataStore) error

NewAIRatelimitController creates a new ratelimitcontroller instance.

func NewGatewayClassController

func NewGatewayClassController(mgr manager.Manager, statusUpdater *status.UpdateHandler) error

NewGatewayClassController creates a new GatewayClass controller instance. GatewayClass Controllers watches for gwapiv1.GatewayClass.

func NewratelimitController

func NewratelimitController(mgr manager.Manager, ratelimitStore *cache.RatelimitDataStore) error

NewratelimitController creates a new ratelimitcontroller instance.

Types

type AIRateLimitPolicyReconciler

type AIRateLimitPolicyReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

AIRateLimitPolicyReconciler reconciles a AIRateLimitPolicy object

func (*AIRateLimitPolicyReconciler) 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 AIRateLimitPolicy 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.14.4/pkg/reconcile

func (*AIRateLimitPolicyReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type GatewayClassReconciler

type GatewayClassReconciler struct {
	// contains filtered or unexported fields
}

GatewayClassReconciler reconciles a Gateway object

func (*GatewayClassReconciler) Reconcile

func (gatewayClassReconciler *GatewayClassReconciler) 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.

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

type RateLimitPolicyReconciler

type RateLimitPolicyReconciler struct {
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

RateLimitPolicyReconciler reconciles a RateLimitPolicy object

func (*RateLimitPolicyReconciler) AddRatelimitRequest

func (ratelimitReconciler *RateLimitPolicyReconciler) AddRatelimitRequest(obj k8client.Object) []reconcile.Request

AddRatelimitRequest adds a request to reconcile for the given ratelimit policy

func (*RateLimitPolicyReconciler) Reconcile

func (ratelimitReconciler *RateLimitPolicyReconciler) 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 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.15.0/pkg/reconcile

func (*RateLimitPolicyReconciler) SetupWithManager

func (ratelimitReconciler *RateLimitPolicyReconciler) 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