Skip to content

Commit f9e46a9

Browse files
1aalapecloud-bot
authored andcommitted
fix: restore by ops crash when tls is enable (#10094)
(cherry picked from commit aa411cd)
1 parent c02c0a2 commit f9e46a9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/operations/restore.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ func (r RestoreOpsHandler) getClusterObjFromBackup(backup *dpv1alpha1.Backup, op
230230
cluster.Spec.Services = services
231231
for i := range cluster.Spec.ComponentSpecs {
232232
cluster.Spec.ComponentSpecs[i].OfflineInstances = nil
233+
cluster.Spec.ComponentSpecs[i].TLS = false
234+
cluster.Spec.ComponentSpecs[i].Issuer = nil
233235
}
234236
r.rebuildShardAccountSecrets(cluster)
235237
r.normalizeSchedulePolicy(cluster, cluster.Spec.SchedulingPolicy)

0 commit comments

Comments
 (0)