Skip to content

Commit

Permalink
fix: fix typo in UDPRoute controller's watch (#4835)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Oct 13, 2023
1 parent 6b2ada6 commit f711b2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,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

Expand Down
4 changes: 2 additions & 2 deletions internal/controllers/gateway/udproute_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit f711b2a

Please sign in to comment.