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 23, 2024
1 parent a9716c5 commit a7e9fce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions 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+)
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
2 changes: 2 additions & 0 deletions charts/k8ssandra-operator/crds/k8ssandra-operator-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10740,6 +10740,7 @@ spec:
- Cassandra: 3.11.X, 4.X.X and 5.X.X
- DSE: 6.8.X, 7.x.x
- HCD: 1.0.x
pattern: (\d+\.\d+\.\d+)
type: string
serviceAccount:
description: The k8s service account to use for the Cassandra
Expand Down Expand Up @@ -23265,6 +23266,7 @@ spec:
- Cassandra: 3.11.X, 4.X.X and 5.X.X
- DSE: 6.8.X, 7.x.x
- HCD: 1.0.x
pattern: (\d+\.\d+\.\d+)
type: string
serviceAccount:
description: The k8s service account to use for the Cassandra
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/k8ssandra.io_k8ssandraclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10678,6 +10678,7 @@ spec:
- Cassandra: 3.11.X, 4.X.X and 5.X.X
- DSE: 6.8.X, 7.x.x
- HCD: 1.0.x
pattern: (\d+\.\d+\.\d+)
type: string
serviceAccount:
description: The k8s service account to use for the Cassandra
Expand Down Expand Up @@ -23203,6 +23204,7 @@ spec:
- Cassandra: 3.11.X, 4.X.X and 5.X.X
- DSE: 6.8.X, 7.x.x
- HCD: 1.0.x
pattern: (\d+\.\d+\.\d+)
type: string
serviceAccount:
description: The k8s service account to use for the Cassandra
Expand Down

0 comments on commit a7e9fce

Please sign in to comment.