Skip to content

Commit

Permalink
feat: add optional field to generate log/data pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
drivebyer committed Jan 18, 2024
1 parent 79bb58f commit 8c842ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/v1/mongodbcommunity_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c842ec

Please sign in to comment.