Skip to content

Commit 2a9ee95

Browse files
authored
Merge pull request #448 from jngo2/master
Remove duplicate InitMetrics
2 parents 99f04d6 + fc4e6cb commit 2a9ee95

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cmd/aws-iam-authenticator/verify.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ import (
2121
"fmt"
2222
"os"
2323

24-
"sigs.k8s.io/aws-iam-authenticator/pkg/metrics"
2524
"sigs.k8s.io/aws-iam-authenticator/pkg/token"
2625

2726
"github.com/aws/aws-sdk-go/aws/endpoints"
28-
"github.com/prometheus/client_golang/prometheus"
2927
"github.com/spf13/cobra"
3028
"github.com/spf13/viper"
3129
)
@@ -72,7 +70,6 @@ var verifyCmd = &cobra.Command{
7270

7371
func init() {
7472
rootCmd.AddCommand(verifyCmd)
75-
metrics.InitMetrics(prometheus.DefaultRegisterer)
7673
verifyCmd.Flags().StringP("token", "t", "", "Token to verify")
7774
verifyCmd.Flags().StringP("output", "o", "", "Output format. Only `json` is supported currently.")
7875
viper.BindPFlag("token", verifyCmd.Flags().Lookup("token"))

0 commit comments

Comments
 (0)