mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-17 19:23:08 +02:00
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:
@@ -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",
|
Name: "SCALYR_API_KEY",
|
||||||
Value: c.OpConfig.ScalyrAPIKey,
|
Value: c.OpConfig.ScalyrAPIKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user