From 736d893e29d49ca88c0b5907a6e5326ae963cf46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Thu, 12 Oct 2023 18:36:42 +0200 Subject: [PATCH] fix: fix typo in UDPRoute controller's watch --- CHANGELOG.md | 2 ++ internal/controllers/gateway/udproute_controller.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d2f88cfe3..86384a9d61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -116,6 +116,8 @@ Adding a new version? You'll need three changes: will be included in the message reported in `KongConfigurationApplyFailed` Kubernetes event generated for it. [#4813](https://github.com/Kong/kubernetes-ingress-controller/pull/4813) +- Fixed an incorrect watch, set in UDPRoute controller watching UDProute status updates. + [#4835](https://github.com/Kong/kubernetes-ingress-controller/pull/4835) ### Changed diff --git a/internal/controllers/gateway/udproute_controller.go b/internal/controllers/gateway/udproute_controller.go index c2e92a46da..d36d5660c2 100644 --- a/internal/controllers/gateway/udproute_controller.go +++ b/internal/controllers/gateway/udproute_controller.go @@ -91,7 +91,7 @@ func (r *UDPRouteReconciler) SetupWithManager(mgr ctrl.Manager) error { &source.Channel{Source: r.StatusQueue.Subscribe(schema.GroupVersionKind{ Group: gatewayv1alpha2.GroupVersion.Group, Version: gatewayv1alpha2.GroupVersion.Version, - Kind: "TCPRoute", + Kind: "UDPRoute", })}, &handler.EnqueueRequestForObject{}, ); err != nil { @@ -380,7 +380,7 @@ func (r *UDPRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c } if configurationStatus == k8sobj.ConfigurationStatusFailed { - debug(log, udproute, "tcproute configuration failed") + debug(log, udproute, "udproute configuration failed") statusUpdated, err := ensureParentsProgrammedCondition(ctx, r.Status(), udproute, udproute.Status.Parents, gateways, metav1.Condition{ Status: metav1.ConditionFalse, Reason: string(ConditionReasonTranslationError),