mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 23:16:22 +00:00
rename EndpointCA
This commit is contained in:
committed by
Alena Prokharchyk
parent
0a488ca453
commit
2c907f9f21
@@ -148,8 +148,8 @@ func validateEtcdBackupOptions(c *Cluster) error {
|
||||
if len(c.Services.Etcd.BackupConfig.S3BackupConfig.BucketName) == 0 {
|
||||
return fmt.Errorf("etcd s3 backup backend bucketName can't be empty")
|
||||
}
|
||||
if len(c.Services.Etcd.BackupConfig.S3BackupConfig.EndpointCA) != 0 {
|
||||
if isValid, err := pki.IsValidCertStr(c.Services.Etcd.BackupConfig.S3BackupConfig.EndpointCA); !isValid {
|
||||
if len(c.Services.Etcd.BackupConfig.S3BackupConfig.CustomCA) != 0 {
|
||||
if isValid, err := pki.IsValidCertStr(c.Services.Etcd.BackupConfig.S3BackupConfig.CustomCA); !isValid {
|
||||
return fmt.Errorf("invalid S3 endpoint CA certificate: %v", err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user