Documentation ¶
Index ¶
- func GetNamespace(namespace *gwapiv1b1.Namespace, defaultNamespace string) string
- func NamespacedName(obj client.Object) types.NamespacedName
- func NewGatewayClassController(mgr manager.Manager, statusUpdater *status.UpdateHandler) error
- func NewratelimitController(mgr manager.Manager, ratelimitStore *cache.RatelimitDataStore) error
- type GatewayClassReconciler
- type RateLimitPolicyReconciler
- func (ratelimitReconsiler *RateLimitPolicyReconciler) AddRatelimitRequest(obj k8client.Object) []reconcile.Request
- func (ratelimitReconsiler *RateLimitPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (ratelimitReconsiler *RateLimitPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespace ¶
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.