1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 23:16:22 +00:00

rename EndpointCA

This commit is contained in:
moelsayed
2019-06-25 22:12:17 +02:00
committed by Alena Prokharchyk
parent 0a488ca453
commit 2c907f9f21
3 changed files with 8 additions and 8 deletions

View File

@@ -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)
}
}