New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the apiversion from KUBERNETES_EXEC_INFO #439
Changes from all commits
a701bd0
837a59e
5037775
095a4ad
cb19d5f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,11 @@ 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" | ||
) | ||
|
@@ -70,6 +72,7 @@ var verifyCmd = &cobra.Command{ | |
|
||
func init() { | ||
rootCmd.AddCommand(verifyCmd) | ||
metrics.InitMetrics(prometheus.DefaultRegisterer) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this change unrelated? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes. it fixes #438 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably would be best to isolate this to a different PR, thanks Jyoti. Then you can link to #438 from that other PR summary :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will do |
||
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")) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes #438