Skip to content

Commit

Permalink
Merge pull request #448 from jngo2/master
Browse files Browse the repository at this point in the history
Remove duplicate InitMetrics
  • Loading branch information
k8s-ci-robot committed Apr 8, 2022
2 parents 99f04d6 + fc4e6cb commit 2a9ee95
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/aws-iam-authenticator/verify.go
Expand Up @@ -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"
)
Expand Down Expand Up @@ -72,7 +70,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"))
Expand Down

0 comments on commit 2a9ee95

Please sign in to comment.