Skip to content

Commit

Permalink
Add ReplicationController type to extractPodName func
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinaaledort committed Jul 8, 2024
1 parent 85e14c5 commit 5326b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions endpointslices/endpointslices.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5326b1e

Please sign in to comment.