Skip to content

Commit

Permalink
Correct the API desc about the defaults for Full Ratios in OCS-Operator
Browse files Browse the repository at this point in the history
While adding the fields the description of the fields were directly
lifted off from rook-operator. The values of NearFull, BackfillFull &
Full in rook are 0.85, 0.90 & 0.95 respectively. But in OCS Operator
we set these values to 0.75, 0.80 & 0.85 respectively with the help
of the rook-config-override ConfigMap. So the description of the fields
in the API should reflect the actual values that are set in OCS.

Signed-off-by: Malay Kumar Parida <[email protected]>
  • Loading branch information
malayparida2000 committed Sep 25, 2024
1 parent cc97525 commit bcb823a
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 42 deletions.
13 changes: 7 additions & 6 deletions api/v1/storagecluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,21 +198,22 @@ type ManageCephCluster struct {
// default DOWN/OUT interval) when it is draining. This is only relevant when `managePodBudgets` is `true` in cephCluster CR.
// The default value is `30` minutes.
OsdMaintenanceTimeout time.Duration `json:"osdMaintenanceTimeout,omitempty"`
// FullRatio is the ratio at which the cluster is considered full and ceph will stop accepting writes. Default is 0.95.
// NearFullRatio is the ratio at which the cluster is considered nearly full and will raise a ceph health warning. Default is 0.75.
// +kubebuilder:validation:Minimum=0.0
// +kubebuilder:validation:Maximum=1.0
// +nullable
FullRatio *float64 `json:"fullRatio,omitempty"`
// NearFullRatio is the ratio at which the cluster is considered nearly full and will raise a ceph health warning. Default is 0.85.
NearFullRatio *float64 `json:"nearFullRatio,omitempty"`
// BackfillFullRatio is the ratio at which the cluster is too full for backfill. Backfill will be disabled if above this threshold. Default is 0.80.
// +kubebuilder:validation:Minimum=0.0
// +kubebuilder:validation:Maximum=1.0
// +nullable
NearFullRatio *float64 `json:"nearFullRatio,omitempty"`
// BackfillFullRatio is the ratio at which the cluster is too full for backfill. Backfill will be disabled if above this threshold. Default is 0.90.
BackfillFullRatio *float64 `json:"backfillFullRatio,omitempty"`
// FullRatio is the ratio at which the cluster is considered full and ceph will stop accepting writes. Default is 0.85.
// +kubebuilder:validation:Minimum=0.0
// +kubebuilder:validation:Maximum=1.0
// +nullable
BackfillFullRatio *float64 `json:"backfillFullRatio,omitempty"`
FullRatio *float64 `json:"fullRatio,omitempty"`

// Whether to allow updating the device class after the OSD is initially provisioned
AllowDeviceClassUpdate bool `json:"allowDeviceClassUpdate,omitempty"`
}
Expand Down
10 changes: 5 additions & 5 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions config/crd/bases/ocs.openshift.io_storageclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ spec:
backfillFullRatio:
description: BackfillFullRatio is the ratio at which the cluster
is too full for backfill. Backfill will be disabled if above
this threshold. Default is 0.90.
this threshold. Default is 0.80.
maximum: 1
minimum: 0
nullable: true
Expand All @@ -764,7 +764,7 @@ spec:
fullRatio:
description: FullRatio is the ratio at which the cluster is
considered full and ceph will stop accepting writes. Default
is 0.95.
is 0.85.
maximum: 1
minimum: 0
nullable: true
Expand All @@ -782,7 +782,7 @@ spec:
nearFullRatio:
description: NearFullRatio is the ratio at which the cluster
is considered nearly full and will raise a ceph health warning.
Default is 0.85.
Default is 0.75.
maximum: 1
minimum: 0
nullable: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ spec:
backfillFullRatio:
description: BackfillFullRatio is the ratio at which the cluster
is too full for backfill. Backfill will be disabled if above
this threshold. Default is 0.90.
this threshold. Default is 0.80.
maximum: 1
minimum: 0
nullable: true
Expand All @@ -764,7 +764,7 @@ spec:
fullRatio:
description: FullRatio is the ratio at which the cluster is
considered full and ceph will stop accepting writes. Default
is 0.95.
is 0.85.
maximum: 1
minimum: 0
nullable: true
Expand All @@ -782,7 +782,7 @@ spec:
nearFullRatio:
description: NearFullRatio is the ratio at which the cluster
is considered nearly full and will raise a ceph health warning.
Default is 0.85.
Default is 0.75.
maximum: 1
minimum: 0
nullable: true
Expand Down
6 changes: 3 additions & 3 deletions deploy/ocs-operator/manifests/storagecluster.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ spec:
backfillFullRatio:
description: BackfillFullRatio is the ratio at which the cluster
is too full for backfill. Backfill will be disabled if above
this threshold. Default is 0.90.
this threshold. Default is 0.80.
maximum: 1
minimum: 0
nullable: true
Expand All @@ -764,7 +764,7 @@ spec:
fullRatio:
description: FullRatio is the ratio at which the cluster is
considered full and ceph will stop accepting writes. Default
is 0.95.
is 0.85.
maximum: 1
minimum: 0
nullable: true
Expand All @@ -782,7 +782,7 @@ spec:
nearFullRatio:
description: NearFullRatio is the ratio at which the cluster
is considered nearly full and will raise a ceph health warning.
Default is 0.85.
Default is 0.75.
maximum: 1
minimum: 0
nullable: true
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bcb823a

Please sign in to comment.