Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions controllers/constant/odlm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,6 @@ spec:
resizeInUseVolumes: true
size: 10Gi
postgresql:
parameters:
max_connections: "600"
pg_hba:
- hostssl cloudpak cpadmin all cert
- hostssl im im_user all cert
Expand Down
15 changes: 8 additions & 7 deletions controllers/operandconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,14 @@ func mergeChangedMap(key string, defaultMap interface{}, changedMap interface{},
finalMap[key] = defaultMap
} else {
var comparableKeys = map[string]bool{
"replicas": true,
"cpu": true,
"memory": true,
"profile": true,
"fipsEnabled": true,
"fips_enabled": true,
"instances": true,
"replicas": true,
"cpu": true,
"memory": true,
"profile": true,
"fipsEnabled": true,
"fips_enabled": true,
"instances": true,
"max_connections": true,
}
if _, ok := comparableKeys[key]; ok {
if directAssign {
Expand Down
3 changes: 3 additions & 0 deletions controllers/rules/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ const ConfigurationRules = `
ephemeral-storage: LARGEST_VALUE
cpu: LARGEST_VALUE
memory: LARGEST_VALUE
postgresql:
parameters:
max_connections: LARGEST_VALUE
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/large_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Large = `
ephemeral-storage: 200Mi
cpu: 225m
memory: 600Mi
postgresql:
parameters:
max_connections: 1100
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/large_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Large = `
ephemeral-storage: 500Mi
cpu: 384m
memory: 768Mi
postgresql:
parameters:
max_connections: 1100
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/large_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Large = `
ephemeral-storage: 500Mi
cpu: 384m
memory: 768Mi
postgresql:
parameters:
max_connections: 1100
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/medium_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Medium = `
ephemeral-storage: 128Mi
cpu: 150m
memory: 384Mi
postgresql:
parameters:
max_connections: 750
- name: ibm-im-mongodb-operator-v4.0
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/medium_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Medium = `
ephemeral-storage: 128Mi
cpu: 150m
memory: 384Mi
postgresql:
parameters:
max_connections: 750
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/medium_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Medium = `
ephemeral-storage: 128Mi
cpu: 150m
memory: 384Mi
postgresql:
parameters:
max_connections: 750
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/small_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Small = `
ephemeral-storage: 128Mi
cpu: 75m
memory: 256Mi
postgresql:
parameters:
max_connections: 600
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/small_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Small = `
ephemeral-storage: 128Mi
cpu: 75m
memory: 256Mi
postgresql:
parameters:
max_connections: 600
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/small_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const Small = `
ephemeral-storage: 128Mi
cpu: 75m
memory: 256Mi
postgresql:
parameters:
max_connections: 600
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/starterset_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const StarterSet = `
ephemeral-storage: 128Mi
cpu: 75m
memory: 256Mi
postgresql:
parameters:
max_connections: 400
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/starterset_ppc64le.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const StarterSet = `
ephemeral-storage: 128Mi
cpu: 75m
memory: 256Mi
postgresql:
parameters:
max_connections: 400
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down
3 changes: 3 additions & 0 deletions controllers/size/starterset_s390x.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ const StarterSet = `
ephemeral-storage: 128Mi
cpu: 75m
memory: 256Mi
postgresql:
parameters:
max_connections: 400
- name: ibm-im-mongodb-operator
spec:
mongoDB:
Expand Down