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

[processor/resourcedetection] Fix EKS detector nil panic. #227

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

jefchien
Copy link

@jefchien jefchien commented Aug 22, 2024

Description: If newK8sDetectorUtils encounters an error, it will return a nil util and an error. Currently, the error is never logged and the detector is created. When the Detect function is called, the nil util is passed into the function and a nil panic occurs.

Changed the constructor function to return the error if the util constructor fails. This is similar to the EC2 detector and ECS detector.

Testing: Updated unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants