func IsClientSecure(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.ServerSecret != "" {
		return true
	}
	if tlsConfig.AutoTLSCert != nil && tlsConfig.AutoTLSCert.AutoGenerateServerCert {
		return true
	}
	return false
}
// IsClientSecure return true if the etcd cluster use server TLS configuration
IsClientSecure return true if the etcd cluster use server TLS configuration
// IsClientSecure return true if the etcd cluster use server TLS configuration
func IsClientSecure(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.ServerSecret != "" {
		return true
	}
	if tlsConfig.AutoTLSCert != nil && tlsConfig.AutoTLSCert.AutoGenerateServerCert {
		return true
	}
	return false
}
func IsClientSecure ( 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 . ServerSecret != " " { return true } if tlsConfig . AutoTLSCert != nil && tlsConfig . AutoTLSCert . AutoGenerateServerCert { return true } return false }
IsClientSecure return true if the etcd cluster use server TLS configuration
IsClientSecure return true if the etcd cluster use server TLS configuration