Add PostgreSQL pod namespace Scalyr sidecar environment (#196)

Another tiny bit of information that could be useful for log filters
once we start deploying clusters into separate namespaces.
This commit is contained in:
Manuel Gómez 2017-12-22 17:12:50 +01:00 committed by GitHub
parent cd9bc7bdc5
commit 1109cfa7a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -454,6 +454,15 @@ func (c *Cluster) generatePodTemplate(
},
},
},
{
Name: "POD_NAMESPACE",
ValueFrom: &v1.EnvVarSource{
FieldRef: &v1.ObjectFieldSelector{
APIVersion: "v1",
FieldPath: "metadata.namespace",
},
},
},
{
Name: "SCALYR_API_KEY",
Value: c.OpConfig.ScalyrAPIKey,