Skip to content

Commit

Permalink
ceph: only allow up to 9 mons to be specified
Browse files Browse the repository at this point in the history
Typical clusters only require 3 or maybe 5 mons. If someone really wants
to go crazy they can add more mons, but over 9 mons really should not be
used.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
  • Loading branch information
travisn committed Sep 2, 2021
1 parent f24842e commit afc436f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cluster/charts/rook-ceph/templates/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ spec:
type: boolean
count:
description: Count is the number of Ceph monitors
maximum: 9
minimum: 0
type: integer
stretchCluster:
Expand Down
1 change: 1 addition & 0 deletions cluster/examples/kubernetes/ceph/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ spec:
type: boolean
count:
description: Count is the number of Ceph monitors
maximum: 9
minimum: 0
type: integer
stretchCluster:
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/ceph.rook.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ const (
type MonSpec struct {
// Count is the number of Ceph monitors
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=9
// +optional
Count int `json:"count,omitempty"`
// AllowMultiplePerNode determines if we can run multiple monitors on the same node (not recommended)
Expand Down

0 comments on commit afc436f

Please sign in to comment.