Skip to content

Commit d5c0c6b

Browse files
committed
Fix grammar in deletion blocked warning message
Update the warning message to use "used" instead of "in using" for better clarity and correctness when indicating that a GatewayClass is still referenced by Gateways.
1 parent 443aa9a commit d5c0c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/gatewayclass_congroller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (r *GatewayClassReconciler) Reconcile(ctx context.Context, req ctrl.Request
7575
}
7676
}
7777
if len(gateways) > 0 {
78-
r.Eventf(gc, "Warning", "DeletionBlocked", "the GatewayClass is still in using by Gateways: %v", gateways)
78+
r.Eventf(gc, "Warning", "DeletionBlocked", "the GatewayClass is still used by Gateways: %v", gateways)
7979
return ctrl.Result{RequeueAfter: 5 * time.Second}, nil
8080
} else {
8181
controllerutil.RemoveFinalizer(gc, FinalizerGatewayClassProtection)

0 commit comments

Comments
 (0)