Skip to content

Commit

Permalink
Merge pull request #132 from denis-tingaikin/add-pod-name-env
Browse files Browse the repository at this point in the history
qfix: add POD_NAME env for injected pods
  • Loading branch information
edwarnicke authored May 14, 2022
2 parents 6f9468d + 5899fe9 commit 173a3bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ func (c *Config) initializeEnvs() {
},
},
},
corev1.EnvVar{
Name: "POD_NAME",
ValueFrom: &corev1.EnvVarSource{
FieldRef: &corev1.ObjectFieldSelector{
FieldPath: "metadata.name",
},
},
},
)
}

Expand Down

0 comments on commit 173a3bc

Please sign in to comment.