From 8022fb034f60e641232d667ca451b256ba0c6aa7 Mon Sep 17 00:00:00 2001 From: Min Wang Date: Sun, 10 Oct 2021 17:06:47 -0700 Subject: [PATCH] fix linter check --- main.go | 2 +- pkg/options/types.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 3889b60e1d..f603144019 100644 --- a/main.go +++ b/main.go @@ -115,7 +115,7 @@ func main() { } namespaces := opts.Namespaces.GetNamespaces(opts.Namespaces) - //TODO(mallow111): use real namespace filter by calling GetExcludeNSFieldSelector(opts.NamespacesDenylist) + // TODO(mallow111): use real namespace filter by calling GetExcludeNSFieldSelector(opts.NamespacesDenylist) storeBuilder.WithNamespaces(namespaces, "") allowDenyList, err := allowdenylist.New(opts.MetricAllowlist, opts.MetricDenylist) diff --git a/pkg/options/types.go b/pkg/options/types.go index 00cf151bd3..337a4beeb4 100644 --- a/pkg/options/types.go +++ b/pkg/options/types.go @@ -18,10 +18,11 @@ package options import ( "errors" - "k8s.io/apimachinery/pkg/fields" "sort" "strings" + "k8s.io/apimachinery/pkg/fields" + "k8s.io/klog/v2" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"