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 @@ -132,6 +132,10 @@ type MongoDBCommunitySpec struct {
132
132
// MemberConfig
133
133
// +optional
134
134
MemberConfig []automationconfig.MemberOptions `json:"memberConfig,omitempty"`
135
+
136
+ // +optional
137
+ // +kubebuilder:default:=true
138
+ SeparateDataAndLogsVolumes bool `json:"separateDataAndLogsVolumes,omitempty"`
135
139
}
136
140
137
141
// MapWrapper is a wrapper for a map to be used by other structs.
@@ -1152,7 +1156,7 @@ func (m *MongoDBCommunity) getLastVersion() string {
1152
1156
}
1153
1157
1154
1158
func (m * MongoDBCommunity ) HasSeparateDataAndLogsVolumes () bool {
1155
- return true
1159
+ return m . Spec . SeparateDataAndLogsVolumes
1156
1160
}
1157
1161
1158
1162
func (m * MongoDBCommunity ) GetAnnotations () map [string ]string {
Original file line number Diff line number Diff line change @@ -453,6 +453,9 @@ spec:
453
453
- enabled
454
454
type : object
455
455
type : object
456
+ separateDataAndLogsVolumes :
457
+ default : true
458
+ type : boolean
456
459
statefulSet :
457
460
description : StatefulSetConfiguration holds the optional custom StatefulSet
458
461
that should be merged into the operator created one.
You can’t perform that action at this time.
0 commit comments