From f0fe605d19a41db94d51e86fd89ee91ab6cac645 Mon Sep 17 00:00:00 2001 From: jngo2 <63315030+jngo2@users.noreply.github.com> Date: Fri, 8 Apr 2022 12:20:54 -0700 Subject: [PATCH 1/2] Remove duplicate InitMetrics --- cmd/aws-iam-authenticator/verify.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/aws-iam-authenticator/verify.go b/cmd/aws-iam-authenticator/verify.go index 81a455f03..a8228fc23 100644 --- a/cmd/aws-iam-authenticator/verify.go +++ b/cmd/aws-iam-authenticator/verify.go @@ -72,7 +72,6 @@ var verifyCmd = &cobra.Command{ func init() { rootCmd.AddCommand(verifyCmd) - metrics.InitMetrics(prometheus.DefaultRegisterer) verifyCmd.Flags().StringP("token", "t", "", "Token to verify") verifyCmd.Flags().StringP("output", "o", "", "Output format. Only `json` is supported currently.") viper.BindPFlag("token", verifyCmd.Flags().Lookup("token")) From fc4e6cb139140280a2cedb5e4d2e86fcc9ebb5e6 Mon Sep 17 00:00:00 2001 From: jngo2 <63315030+jngo2@users.noreply.github.com> Date: Fri, 8 Apr 2022 12:29:45 -0700 Subject: [PATCH 2/2] Remove unused imports --- cmd/aws-iam-authenticator/verify.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/aws-iam-authenticator/verify.go b/cmd/aws-iam-authenticator/verify.go index a8228fc23..7ea1ecf4b 100644 --- a/cmd/aws-iam-authenticator/verify.go +++ b/cmd/aws-iam-authenticator/verify.go @@ -21,11 +21,9 @@ import ( "fmt" "os" - "sigs.k8s.io/aws-iam-authenticator/pkg/metrics" "sigs.k8s.io/aws-iam-authenticator/pkg/token" "github.com/aws/aws-sdk-go/aws/endpoints" - "github.com/prometheus/client_golang/prometheus" "github.com/spf13/cobra" "github.com/spf13/viper" )