Skip to content

Commit d6f5b8a

Browse files
K8SPSMDB-1316: Add pmm.customClusterName (#524)
Co-authored-by: Julio Pasinatto <[email protected]>
1 parent 8461cfb commit d6f5b8a

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Diff for: charts/psmdb-db/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ The chart can be customized using the following configurable parameters:
8686
| `pmm.resources` | Set resources for PMM container | `{}` |
8787
| `pmm.mongodParams` | PMM mongod params | `""` |
8888
| `pmm.mongosParams` | PMM mongos params | `""` |
89+
| `pmm.customClusterName` | PMM cluster name. If not set Operator uses cr.Name for PMM cluster name. | `""` |
8990
| |
9091
| `replsets.rs0.name` | ReplicaSet name | `rs0` |
9192
| `replsets.rs0.size` | ReplicaSet size (pod quantity) | `3` |

Diff for: charts/psmdb-db/templates/cluster.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ spec:
9292
containerSecurityContext:
9393
{{ .Values.pmm.containerSecurityContext | toYaml | indent 6 }}
9494
{{- end }}
95+
{{- if .Values.pmm.customClusterName }}
96+
customClusterName: {{ .Values.pmm.customClusterName }}
97+
{{- end }}
9598

9699
replsets:
97100
{{- range $k,$replset := .Values.replsets }}

Diff for: charts/psmdb-db/values.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ pmm:
8585
repository: percona/pmm-client
8686
tag: 2.44.0
8787
serverHost: monitoring-service
88-
# mongodParams: ""
89-
# mongosParams: ""
90-
# resources: {}
91-
# containerSecurityContext: {}
88+
# customClusterName: ""
89+
# mongodParams: ""
90+
# mongosParams: ""
91+
# resources: {}
92+
# containerSecurityContext: {}
9293

9394
replsets:
9495
rs0:

0 commit comments

Comments
 (0)