func IsPeerSecure(e *v1alpha1.EtcdCluster) bool {
	if e.Spec.Secure == nil || e.Spec.Secure.TLS == nil {
		return false
	}
	tlsConfig := e.Spec.Secure.TLS
	if tlsConfig.ExternalCerts != nil && tlsConfig.ExternalCerts.PeerSecret != "" {
		return true
	}
	if tlsConfig.AutoTLSCert != nil && tlsConfig.AutoTLSCert.AutoGeneratePeerCert {
		return true
	}
	return false
}
// IsPeerSecure return true if the etcd cluster use peer TLS configuration
IsPeerSecure return true if the etcd cluster use peer TLS configuration
// IsPeerSecure return true if the etcd cluster use peer TLS configuration
func IsPeerSecure(e *v1alpha1.EtcdCluster) bool {
	if e.Spec.Secure == nil || e.Spec.Secure.TLS == nil {
		return false
	}
	tlsConfig := e.Spec.Secure.TLS
	if tlsConfig.ExternalCerts != nil && tlsConfig.ExternalCerts.PeerSecret != "" {
		return true
	}
	if tlsConfig.AutoTLSCert != nil && tlsConfig.AutoTLSCert.AutoGeneratePeerCert {
		return true
	}
	return false
}
func IsPeerSecure ( e * v1alpha1 . EtcdCluster ) bool { if e . Spec . Secure == nil || e . Spec . Secure . TLS == nil { return false } tlsConfig := e . Spec . Secure . TLS if tlsConfig . ExternalCerts != nil && tlsConfig . ExternalCerts . PeerSecret != " " { return true } if tlsConfig . AutoTLSCert != nil && tlsConfig . AutoTLSCert . AutoGeneratePeerCert { return true } return false }
IsPeerSecure return true if the etcd cluster use peer TLS configuration
IsPeerSecure return true if the etcd cluster use peer TLS configuration