Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8SPG-717 add cluster label #1083

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 5 additions & 0 deletions percona/pmm/pmm.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ func SidecarContainer(pgc *v2.PerconaPGCluster) corev1.Container {
Name: "DB_USER",
Value: v2.UserMonitoring,
},
{
Name: "CLUSTER_NAME",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add it only for crVer >= 2.7.0

Value: pgc.Name,
},
{
Name: "DB_PASS",
ValueFrom: &corev1.EnvVarSource{
Expand Down Expand Up @@ -230,6 +234,7 @@ func agentPrerunScript(querySource v2.PMMQuerySource) string {
"--password='$(DB_PASS)'",
"--host=127.0.0.1",
"--port=5432",
"--cluster=$(CLUSTER_NAME)",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add it only for crVer >= 2.7.0

"--tls-cert-file=/pgconf/tls/tls.crt",
"--tls-key-file=/pgconf/tls/tls.key",
"--tls-ca-file=/pgconf/tls/ca.crt",
Expand Down
Loading