File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import (
32
32
33
33
"github.com/jetstack/preflight/api"
34
34
"github.com/jetstack/preflight/pkg/client"
35
- "github.com/jetstack/preflight/pkg/clusteruid"
36
35
"github.com/jetstack/preflight/pkg/datagatherer"
37
36
"github.com/jetstack/preflight/pkg/datagatherer/k8s"
38
37
"github.com/jetstack/preflight/pkg/kubeconfig"
@@ -79,28 +78,6 @@ func Run(cmd *cobra.Command, args []string) (returnErr error) {
79
78
return fmt .Errorf ("While evaluating configuration: %v" , err )
80
79
}
81
80
82
- // We need the cluster UID before we progress further so it can be sent along with other data readings
83
-
84
- {
85
- restCfg , err := kubeconfig .LoadRESTConfig ("" )
86
- if err != nil {
87
- return err
88
- }
89
-
90
- clientset , err := kubernetes .NewForConfig (restCfg )
91
- if err != nil {
92
- return err
93
- }
94
-
95
- ctx , err = clusteruid .GetClusterUID (ctx , clientset )
96
- if err != nil {
97
- return fmt .Errorf ("failed to get cluster UID: %v" , err )
98
- }
99
-
100
- clusterUID := clusteruid .ClusterUIDFromContext (ctx )
101
- log .V (logs .Debug ).Info ("Retrieved cluster UID" , "clusterUID" , clusterUID )
102
- }
103
-
104
81
group , gctx := errgroup .WithContext (ctx )
105
82
defer func () {
106
83
cancel ()
You can’t perform that action at this time.
0 commit comments