File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ type MongoDBCommunitySpec struct {
119
119
// Prometheus configurations.
120
120
// +optional
121
121
Prometheus * Prometheus `json:"prometheus,omitempty"`
122
+
123
+ // +optional
124
+ // +kubebuilder:default:=true
125
+ SeparateDataAndLogsVolumes bool `json:"separateDataAndLogsVolumes,omitempty"`
122
126
}
123
127
124
128
// ReplicaSetHorizonConfiguration holds the split horizon DNS settings for
@@ -933,7 +937,7 @@ func (m *MongoDBCommunity) getLastVersion() string {
933
937
}
934
938
935
939
func (m * MongoDBCommunity ) HasSeparateDataAndLogsVolumes () bool {
936
- return true
940
+ return m . Spec . SeparateDataAndLogsVolumes
937
941
}
938
942
939
943
func (m * MongoDBCommunity ) GetAnnotations () map [string ]string {
Original file line number Diff line number Diff line change @@ -327,6 +327,9 @@ spec:
327
327
- enabled
328
328
type : object
329
329
type : object
330
+ separateDataAndLogsVolumes :
331
+ default : true
332
+ type : boolean
330
333
statefulSet :
331
334
description : StatefulSetConfiguration holds the optional custom StatefulSet
332
335
that should be merged into the operator created one.
You can’t perform that action at this time.
0 commit comments