diff --git a/pkg/cluster/util_test.go b/pkg/cluster/util_test.go index 19637ac36..29fc63ff7 100644 --- a/pkg/cluster/util_test.go +++ b/pkg/cluster/util_test.go @@ -20,7 +20,6 @@ func newFakeK8sAnnotationsClient() (k8sutil.KubernetesClient, *k8sFake.Clientset return k8sutil.KubernetesClient{ DeploymentsGetter: clientSet.AppsV1(), - EndpointsGetter: clientSet.CoreV1(), PersistentVolumeClaimsGetter: clientSet.CoreV1(), PodsGetter: clientSet.CoreV1(), PodDisruptionBudgetsGetter: clientSet.PolicyV1beta1(), @@ -118,15 +117,6 @@ func TestInheritedAnnotations(t *testing.T) { } } - // check endpoint annotations - epList, err := cluster.KubeClient.Endpoints(namespace).List(context.TODO(), listOptions) - assert.NoError(t, err) - for _, ep := range epList.Items { - if !(util.MapContains(ep.ObjectMeta.Annotations, inheritedAnnotations)) { - t.Errorf("%s: Endpoint %v not inherited annotations %#v, got %#v", testName, ep.ObjectMeta.Name, inheritedAnnotations, ep.ObjectMeta.Annotations) - } - } - // check pod disruption budget annotations pdbList, err := cluster.KubeClient.PodDisruptionBudgets(namespace).List(context.TODO(), listOptions) assert.NoError(t, err)