dp

package
v0.0.0-...-25e6f9d 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: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace

func GetNamespace(namespace *gwapiv1b1.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 NewGatewayClassController

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

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

func NewratelimitController

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

NewratelimitController creates a new ratelimitcontroller instance.

Types

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 (ratelimitReconsiler *RateLimitPolicyReconciler) AddRatelimitRequest(obj k8client.Object) []reconcile.Request

AddRatelimitRequest adds a request to reconcile for the given ratelimit policy

func (*RateLimitPolicyReconciler) Reconcile

func (ratelimitReconsiler *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 (ratelimitReconsiler *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