■ ■ ■ ■ ■ ■
pkg/service/velero_backup.go
| skipped 262 lines |
263 | 263 | | if vars["ssl"] != nil { |
264 | 264 | | ssl = vars["ssl"].(string) |
265 | 265 | | } |
266 | | - | config := "region=minio,s3ForcePathStyle=true,s3Url=" + ssl + "://" + vars["endpoint"].(string) |
| 266 | + | config := "region=minio,s3ForcePathStyle='true',insecureSkipTLSVerify='true',s3Url=" + ssl + "://" + vars["endpoint"].(string) |
267 | 267 | | args = append(args, "--backup-location-config", config) |
268 | | - | if ssl == "https" { |
269 | | - | args = append(args, "--insecure-skip-tls-verify", "true") |
270 | | - | } |
271 | 268 | | } |
272 | 269 | | if veleroInstall.Requests.Cpu > 0 { |
273 | 270 | | args = append(args, "--velero-pod-cpu-request", strconv.Itoa(veleroInstall.Requests.Cpu)+"m") |
| skipped 66 lines |
340 | 337 | | if err != nil { |
341 | 338 | | return err |
342 | 339 | | } |
343 | | - | if err := db.DB.Where("cluster = ?", cluster).Delete(&model.ClusterVelero{}).Error; err != nil { |
| 340 | + | if err := db.DB.Where("cluster = ?", cluster.Name).Delete(&model.ClusterVelero{}).Error; err != nil { |
344 | 341 | | return err |
345 | 342 | | } |
346 | 343 | | return nil |
| skipped 154 lines |