Skip to content

Commit

Permalink
Merge pull request #406 from DrFaust92/mongo-pmm-params
Browse files Browse the repository at this point in the history
K8SPSMDB-1207 - add missing mongo pmm params
  • Loading branch information
jvpasinatto authored Nov 7, 2024
2 parents 6846fe2 + 842656a commit e2c88cc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/psmdb-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "1.17.0"
description: A Helm chart for installing Percona Server MongoDB Cluster Databases using the PSMDB Operator.
name: psmdb-db
home: https://www.percona.com/doc/kubernetes-operator-for-psmongodb/index.html
version: 1.17.0
version: 1.17.1
maintainers:
- name: tplavcic
email: tomislav.plavcic@percona.com
Expand Down
4 changes: 4 additions & 0 deletions charts/psmdb-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ The chart can be customized using the following configurable parameters:
| `pmm.image.tag` | PMM Container image tag | `2.42.0` |
| `pmm.serverHost` | PMM server related K8S service hostname | `monitoring-service` |
| `pmm.containerSecurityContext` | Set the security context for PMM container | `{}` |
| `pmm.resources` | Set resources for PMM container | `{}` |
| `pmm.mongodParams` | PMM mongod params | `""` |
| |
| `pmm.mongosParams` | PMM mongos params | `""` |
| |
| `replsets.rs0.name` | ReplicaSet name | `rs0` |
| `replsets.rs0.size` | ReplicaSet size (pod quantity) | `3` |
Expand Down
10 changes: 10 additions & 0 deletions charts/psmdb-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ spec:
enabled: {{ .Values.pmm.enabled }}
image: "{{ .Values.pmm.image.repository }}:{{ .Values.pmm.image.tag }}"
serverHost: {{ .Values.pmm.serverHost }}
{{- if .Values.pmm.mongodParams }}
mongodParams: {{ .Values.pmm.mongodParams }}
{{- end }}
{{- if .Values.pmm.mongosParams }}
mongosParams: {{ .Values.pmm.mongosParams }}
{{- end }}
{{- if .Values.pmm.resources }}
resources:
{{ .Values.pmm.resources | toYaml | indent 6 }}
{{- end }}
{{- if .Values.pmm.containerSecurityContext }}
containerSecurityContext:
{{ .Values.pmm.containerSecurityContext | toYaml | indent 6 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/psmdb-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ pmm:
repository: percona/pmm-client
tag: 2.42.0
serverHost: monitoring-service
# mongodParams: ""
# mongosParams: ""
# resources: {}
# containerSecurityContext: {}

replsets:
Expand Down

0 comments on commit e2c88cc

Please sign in to comment.