Skip to content

Commit

Permalink
Added GetServicePerNode for reflecting the default (consistently) (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Stam authored Dec 9, 2024
1 parent 6b58f1c commit feead4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/v1/qdrantcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit feead4e

Please sign in to comment.