You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Replace deprecated corev1.Endpoints with discoveryv1.EndpointSlice
Replace the deprecated corev1.Endpoints API with discoveryv1.EndpointSlice
in test utility functions to fix linting warnings.
Changes:
- Add discoveryv1 import to tests/e2e/test_utils.go
- Replace corev1.Endpoints with discoveryv1.EndpointSlice in logServiceEndpoints()
- Refactor logServiceEndpoints() into smaller helper functions to reduce complexity:
- getEndpointSlices() - retrieves EndpointSlices for a service
- logEndpointSliceDetails() - logs details of a single EndpointSlice
- logEndpoints() - logs endpoint addresses and returns ready/not-ready counts
- logPorts() - logs ports from an EndpointSlice
This resolves the staticcheck warning:
SA1019: corev1.Endpoints is deprecated: This API is deprecated in v1.33+
Signed-off-by: Derek Higgins <derekh@redhat.com>
0 commit comments