@@ -20,7 +20,6 @@ import (
2020 "fmt"
2121 "time"
2222
23- "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/cli/cmd/preview/options"
2423 corepreview "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/cli/preview"
2524 "golang.org/x/oauth2"
2625 "golang.org/x/oauth2/google"
@@ -36,7 +35,7 @@ const (
3635 defaultTimeout = 15
3736)
3837
39- func Execute (ctx context.Context , opts * options. Options ) error {
38+ func Execute (ctx context.Context , opts * Options ) error {
4039 // Use a custom FlagSet for klog to avoid conflicts with global flag.CommandLine
4140 klogFlags := flag .NewFlagSet ("klog" , flag .ExitOnError )
4241 klog .InitFlags (klogFlags )
@@ -103,7 +102,7 @@ func Execute(ctx context.Context, opts *options.Options) error {
103102 return nil
104103}
105104
106- func getRESTConfig (ctx context.Context , opts * options. Options ) (* rest.Config , error ) {
105+ func getRESTConfig (ctx context.Context , opts * Options ) (* rest.Config , error ) {
107106 // TODO: Add rate limiting to Kube client.
108107 if opts .InCluster {
109108 return rest .InClusterConfig ()
@@ -119,7 +118,7 @@ func getRESTConfig(ctx context.Context, opts *options.Options) (*rest.Config, er
119118 & clientcmd.ConfigOverrides {}).ClientConfig ()
120119}
121120
122- func getGCPAuthorization (ctx context.Context , opts * options. Options ) (oauth2.TokenSource , error ) {
121+ func getGCPAuthorization (ctx context.Context , opts * Options ) (oauth2.TokenSource , error ) {
123122 // TODO: Add scope
124123 scopes := []string {defaultScope }
125124 ts , err := google .DefaultTokenSource (ctx , scopes ... )
@@ -129,7 +128,7 @@ func getGCPAuthorization(ctx context.Context, opts *options.Options) (oauth2.Tok
129128 return ts , nil
130129}
131130
132- func printCapturedObjects (recorder * corepreview.Recorder , opts * options. Options ) error {
131+ func printCapturedObjects (recorder * corepreview.Recorder , opts * Options ) error {
133132 now := time .Now ()
134133 timestamp := now .Format ("20060102-150405.000" )
135134 summaryFile := fmt .Sprintf ("%s-%s" , opts .ReportNamePrefix , timestamp )
0 commit comments