From 5326b1ebbe8fb00404ba754d29a83bf44af0aafc Mon Sep 17 00:00:00 2001 From: Sabina Aledort Date: Mon, 8 Jul 2024 12:02:09 +0300 Subject: [PATCH] Add ReplicationController type to extractPodName func --- endpointslices/endpointslices.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/endpointslices/endpointslices.go b/endpointslices/endpointslices.go index 82d28792..f30d2cf8 100644 --- a/endpointslices/endpointslices.go +++ b/endpointslices/endpointslices.go @@ -220,6 +220,8 @@ func extractPodName(pod *corev1.Pod) (string, error) { return ownerRefName, nil case "StatefulSet": return ownerRefName, nil + case "ReplicationController": + return ownerRefName, nil } return "", fmt.Errorf("failed to extract pod name for %s", pod.Name)