env: observe envFrom

Also observe initContainers env and envFrom.

Fixes #460
Fixes #461

Signed-off-by: Paulo Pires <pjpires@gmail.com>
This commit is contained in:
Paulo Pires
2018-12-15 11:01:40 +00:00
parent c108962821
commit 103a19fe9d
2 changed files with 316 additions and 129 deletions

View File

@@ -42,7 +42,7 @@ func (s *Server) createOrUpdatePod(ctx context.Context, pod *corev1.Pod, recorde
defer span.End()
addPodAttributes(span, pod)
if err := s.populateEnvironmentVariables(ctx, pod, recorder); err != nil {
if err := populateEnvironmentVariables(ctx, pod, s.resourceManager, recorder); err != nil {
span.SetStatus(trace.Status{Code: trace.StatusCodeInvalidArgument, Message: err.Error()})
return err
}