Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adejanovski committed May 22, 2024
1 parent 3dcdc63 commit 46d3a31
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apis/k8ssandra/v1alpha1/k8ssandracluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ type DatacenterOptions struct {
// - Cassandra: 3.11.X, 4.X.X and 5.X.X
// - DSE: 6.8.X, 7.x.x
// - HCD: 1.0.x
// +kubebuilder:validation:Pattern=(\d+\.\d+\.\d+)|(\d+\.\d+\.\d+-.*)
ServerVersion string `json:"serverVersion,omitempty"`

// ServerImage is the image for the cassandra container. Note that this should be a
Expand Down Expand Up @@ -545,9 +546,6 @@ func (kc *K8ssandraCluster) DefaultNumTokens(serverVersion *semver.Version) floa
if kc.Spec.Cassandra.ServerType.IsCassandra() && serverVersion.Major() == 3 {
return float64(256)
}
if kc.Spec.Cassandra.ServerType.IsCassandra() {
return float64(8)
}
return float64(16)
}

Expand Down

0 comments on commit 46d3a31

Please sign in to comment.