diff --git a/api/v1/qdrantcluster_types.go b/api/v1/qdrantcluster_types.go index 0c7ab3a..302f699 100644 --- a/api/v1/qdrantcluster_types.go +++ b/api/v1/qdrantcluster_types.go @@ -156,6 +156,14 @@ func (s QdrantClusterSpec) Validate() error { return nil } +// GetServicePerNode get the service per node, taking the default (true) into concideration +func (s QdrantClusterSpec) GetServicePerNode() bool { + if s.ServicePerNode == nil { + return true + } + return *s.ServicePerNode +} + type KubernetesService struct { // Type specifies the type of the Service: "ClusterIP", "NodePort", "LoadBalancer". // +kubebuilder:default="ClusterIP"