func (m DeploymentMode) HasSingleServers() bool {
	return m == DeploymentModeSingle || m == DeploymentModeActiveFailover
}
HasSingleServers returns true when the given mode is "Single" or "ActiveFailover".
package v2alpha1
import (
	"github.com/arangodb/kube-arangodb/pkg/util/errors"
)
type DeploymentMode string
const (
	DeploymentModeSingle DeploymentMode = "Single"
	DeploymentModeActiveFailover DeploymentMode = "ActiveFailover"
	DeploymentModeCluster DeploymentMode = "Cluster"
)
func (m DeploymentMode) Validate() error {
	switch m {
	case DeploymentModeSingle, DeploymentModeActiveFailover, DeploymentModeCluster:
		return nil
	default:
		return errors.WithStack(errors.Wrapf(ValidationError, "Unknown deployment mode: '%s'", string(m)))
	}
}
func (m *DeploymentMode) Get() DeploymentMode {
	if m == nil {
		return DeploymentModeCluster
	}
	return *m
}
func (m *DeploymentMode) String() string {
	return string(m.Get())
}
func (m DeploymentMode) New() *DeploymentMode {
	return &m
}