File tree 1 file changed +11
-6
lines changed 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,22 @@ func startClusterUpgrade(
55
55
return fmt .Errorf ("failed to get current installation: %w" , err )
56
56
}
57
57
58
- newInstall := current
59
- newInstall .ObjectMeta = metav1.ObjectMeta {
60
- Name : time .Now ().Format ("20060102150405" ),
61
- Labels : map [string ]string {
62
- "replicated.com/disaster-recovery" : "ec-install" ,
58
+ newInstall := & embeddedclusterv1beta1.Installation {
59
+ TypeMeta : metav1.TypeMeta {
60
+ APIVersion : embeddedclusterv1beta1 .GroupVersion .String (),
61
+ Kind : "Installation" ,
63
62
},
63
+ ObjectMeta : metav1.ObjectMeta {
64
+ Name : time .Now ().Format ("20060102150405" ),
65
+ Labels : map [string ]string {
66
+ "replicated.com/disaster-recovery" : "ec-install" ,
67
+ },
68
+ },
69
+ Spec : current .Spec ,
64
70
}
65
71
newInstall .Spec .Artifacts = artifacts
66
72
newInstall .Spec .Config = & newcfg
67
73
newInstall .Spec .LicenseInfo = & embeddedclusterv1beta1.LicenseInfo {IsDisasterRecoverySupported : license .Spec .IsDisasterRecoverySupported }
68
- newInstall .Status = embeddedclusterv1beta1.InstallationStatus {}
69
74
70
75
log .Printf ("Starting cluster upgrade to version %s..." , newcfg .Version )
71
76
You can’t perform that action at this time.
0 commit comments