Skip to content

Commit

Permalink
Config kubelet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabedos committed Feb 26, 2025
1 parent 6ed7532 commit bbe4a94
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,15 @@ func TestPodParser(t *testing.T) {
},
Env: []kubelet.EnvVar{
{
Name: "ExplicitEnvVar",
Value: "true",
Name: "DD_ENV",
Value: "prod",
},
{
Name: "ImplicitEnvVar",
Name: "OTEL_SERVICE_NAME",
Value: "$(DD_ENV)-$(DD_EXCLUDED_VAR)",
},
{
Name: "DD_EXCLUDED_VAR",
Value: "",
ValueFrom: &struct{}{},
},
Expand Down Expand Up @@ -134,7 +138,7 @@ func TestPodParser(t *testing.T) {
},
Ports: []workloadmeta.ContainerPort{},
EnvVars: map[string]string{
"ExplicitEnvVar": "true",
"DD_ENV": "prod",
},
State: workloadmeta.ContainerState{
Health: "healthy",
Expand Down

0 comments on commit bbe4a94

Please sign in to comment.