Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watcher: fix NODE_NAME if missing #2824

Merged
merged 1 commit into from
Aug 20, 2024
Merged

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.

3 participants