From 23a7d31806ce62481162a64adcca848fd879bc52 Mon Sep 17 00:00:00 2001 From: Andrew Gouin Date: Fri, 17 Nov 2023 01:10:35 -0700 Subject: [PATCH] fix npe --- cmd/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/watcher.go b/cmd/watcher.go index 5c1ebab..309c04b 100644 --- a/cmd/watcher.go +++ b/cmd/watcher.go @@ -53,7 +53,7 @@ func NewSentryWatcher( return nil, fmt.Errorf("failed to get in cluster config: %w", err) } // creates the clientset - clientset, err := kubernetes.NewForConfig(config) + clientset, err = kubernetes.NewForConfig(config) if err != nil { return nil, fmt.Errorf("failed to create kube clientset: %w", err) }