File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
24
24
"github.com/golang/glog"
25
25
26
- "sigs.k8s.io/controller-runtime/pkg/client/config"
26
+ // "sigs.k8s.io/controller-runtime/pkg/client/config"
27
27
28
28
csrclient "k8s.io/client-go/util/certificate/csr"
29
29
certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
@@ -211,11 +211,6 @@ func main() {
211
211
flag .StringVar (& master , "master" , "" , "master url" )
212
212
flag .Parse ()
213
213
214
- clusterConfig , err := config .GetConfig ()
215
- if err != nil {
216
- glog .Fatal (err )
217
- }
218
-
219
214
// creates the connection
220
215
config , err := clientcmd .BuildConfigFromFlags (master , kubeconfig )
221
216
if err != nil {
@@ -228,7 +223,7 @@ func main() {
228
223
glog .Fatal (err )
229
224
}
230
225
231
- machineClient , err := mapiclient .NewForConfig (clusterConfig )
226
+ machineClient , err := mapiclient .NewForConfig (config )
232
227
if err != nil {
233
228
glog .Fatal (err )
234
229
}
You can’t perform that action at this time.
0 commit comments