Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Expose NodeId as env var for kubernetes pods #minor #385

Closed
wants to merge 2 commits into from

Conversation

fellhorn
Copy link

TL;DR

Exposes the NodeId to the kubernetes Pod as environment variable.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Currently the environment variables do not provide enough information to know the exact task being executed.

For example we intended to create a unique ID for all retries of a task. Without the nodeID this is not possible as tasks might be reused.

One can retrieve this information also from the hostname but this fails for long names due to k8s pod name length limits.

Signed-off-by: Dennis Keck <[email protected]>
@fellhorn fellhorn marked this pull request as draft August 11, 2023 15:16
Signed-off-by: Dennis Keck <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant