Skip to content

Conversation

@Nitishrajj
Copy link

TestGetShutdown was starting real Kubernetes informers, which triggered exec-based authentication plugins from client-go. This caused noisy logs and Windows CI failures after recent Kubernetes client upgrades.

This PR introduces a test-only option to disable informer startup and updates TestGetShutdown to use it. The change ensures the test validates client lifecycle behaviour without starting background go routines or making Kubernetes API calls. Production behaviour remains unchanged.

Link to issue : 43918

Testing:

Reproduced the failure locally
Updated TestGetShutdown to disable informers and reset singleton state
Verified the test passes cleanly without Kubernetes reflector or exec-plugin errors using below command.

go test ./internal/aws/k8s/k8sclient -run TestGetShutdown -v

@Nitishrajj Nitishrajj requested a review from a team as a code owner December 30, 2025 18:06
@Nitishrajj Nitishrajj requested a review from dehaansa December 30, 2025 18:06
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 30, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions
Copy link
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@github-actions github-actions bot added first-time contributor PRs made by new contributors internal/aws labels Dec 30, 2025
@Nitishrajj Nitishrajj force-pushed the 43918-testgetshutdown branch from 19ae197 to 830ceeb Compare December 31, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants