File tree 1 file changed +6
-0
lines changed
cmd/tke-installer/app/installer
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ import (
32
32
"k8s.io/apimachinery/pkg/util/wait"
33
33
"k8s.io/client-go/kubernetes"
34
34
"k8s.io/client-go/tools/clientcmd"
35
+
35
36
platformv1 "tkestack.io/tke/api/client/clientset/versioned/typed/platform/v1"
37
+ registryversionedclient "tkestack.io/tke/api/client/clientset/versioned/typed/registry/v1"
36
38
"tkestack.io/tke/cmd/tke-installer/app/installer/images"
37
39
"tkestack.io/tke/cmd/tke-installer/app/installer/types"
38
40
cronhpaimage "tkestack.io/tke/pkg/platform/controller/addon/cronhpa/images"
@@ -284,6 +286,10 @@ func (t *TKE) prepareForUpgrade(ctx context.Context) error {
284
286
if err != nil {
285
287
return err
286
288
}
289
+ t .registryClient , err = registryversionedclient .NewForConfig (config )
290
+ if err != nil {
291
+ return err
292
+ }
287
293
t .Cluster , err = typesv1 .GetClusterByName (ctx , t .platformClient , "global" )
288
294
if err != nil {
289
295
return err
You can’t perform that action at this time.
0 commit comments