Skip to content

Commit

Permalink
Merge remote-tracking branch 'flyteplugins/expose-node-id' into monor…
Browse files Browse the repository at this point in the history
…epo-move/flyteplugins/expose-node-id
  • Loading branch information
eapolinario committed Oct 3, 2023
2 parents d9586b0 + dff82ed commit 6c24344
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ func GetContextEnvVars(ownerCtx context.Context) []v1.EnvVar {
},
)
}

if nodeID := contextutils.Value(ownerCtx, contextutils.NodeIDKey); nodeID != "" {
envVars = append(envVars,
v1.EnvVar{
Name: "FLYTE_INTERNAL_NODE_ID",
Value: nodeID,
},
)
}

Check warning on line 42 in flyteplugins/go/tasks/pluginmachinery/flytek8s/k8s_resource_adds.go

View check run for this annotation

Codecov / codecov/patch

flyteplugins/go/tasks/pluginmachinery/flytek8s/k8s_resource_adds.go#L36-L42

Added lines #L36 - L42 were not covered by tests
return envVars
}

Expand Down

0 comments on commit 6c24344

Please sign in to comment.