From 358286f6dd0d581032492a2bac0f69105e38b628 Mon Sep 17 00:00:00 2001 From: Laszlo Vigh <44319124+dzacball@users.noreply.github.com> Date: Wed, 15 May 2024 14:59:49 +0200 Subject: [PATCH] fix description for SetupSignalHandler() fix description for SetupSignalHandler() in alias.go to match actual behaviour of returning a context (instead of a channel) --- alias.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alias.go b/alias.go index e4f61b1538..3e1ccdcf08 100644 --- a/alias.go +++ b/alias.go @@ -122,8 +122,8 @@ var ( // there is another OwnerReference with Controller flag set. SetControllerReference = controllerutil.SetControllerReference - // SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned - // which is closed on one of these signals. If a second signal is caught, the program + // SetupSignalHandler registers for SIGTERM and SIGINT. A context is returned + // which is canceled on one of these signals. If a second signal is caught, the program // is terminated with exit code 1. SetupSignalHandler = signals.SetupSignalHandler