Skip to content

Conversation

kevsecurity
Copy link
Contributor

The pkg/reader/node package gets the value of the NODE_NAME environment variable (if the HUBBLE_NODE_NAME is empty). If it is empty, it gets the hostname and uses that. The pkg/watcher package just attempts to get the NODE_NAME environment variable and warns that it will not work as expected if it is empty or missing. This commit changes pkg/watcher so that it uses pkg/reader/node's function instead.

The pkg/reader/node package gets the value of the NODE_NAME environment
variable (if the HUBBLE_NODE_NAME is empty). If it is empty, it gets the
hostname and uses that. The pkg/watcher package just attempts to get the
NODE_NAME environment variable and warns that it will not work as
expected if it is empty or missing. This commit changes pkg/watcher so
that it uses pkg/reader/node's function instead.

Signed-off-by: Kevin Sheldrake <[email protected]>
@kevsecurity kevsecurity added the release-note/misc This PR makes changes that have no direct user impact. label Aug 20, 2024
@kevsecurity kevsecurity requested a review from a team as a code owner August 20, 2024 10:03
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@kkourt kkourt merged commit bcf9429 into main Aug 20, 2024
41 checks passed
@kkourt kkourt deleted the pr/kevsecurity/fix-node-name branch August 20, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants