diff --git a/api/v1/mongodbcommunity_types.go b/api/v1/mongodbcommunity_types.go index 0b33194e8..0dd296c6e 100644 --- a/api/v1/mongodbcommunity_types.go +++ b/api/v1/mongodbcommunity_types.go @@ -132,6 +132,9 @@ type MongoDBCommunitySpec struct { // MemberConfig // +optional MemberConfig []automationconfig.MemberOptions `json:"memberConfig,omitempty"` + + // +optional + CombineDataAndLogsVolumes bool `json:"combineDataAndLogsVolumes,omitempty"` } // MapWrapper is a wrapper for a map to be used by other structs. @@ -1152,7 +1155,7 @@ func (m *MongoDBCommunity) getLastVersion() string { } func (m *MongoDBCommunity) HasSeparateDataAndLogsVolumes() bool { - return true + return !m.Spec.CombineDataAndLogsVolumes } func (m *MongoDBCommunity) GetAnnotations() map[string]string { diff --git a/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml b/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml index f62f7465e..462f15cf7 100644 --- a/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml +++ b/config/crd/bases/mongodbcommunity.mongodb.com_mongodbcommunity.yaml @@ -183,6 +183,8 @@ spec: required: - processes type: object + combineDataAndLogsVolumes: + type: boolean featureCompatibilityVersion: description: FeatureCompatibilityVersion configures the feature compatibility version that will be set for the deployment