remove endpoints from annotation test

This commit is contained in:
Felix Kunde 2020-12-08 16:48:51 +01:00
parent f6212da046
commit 322a8266aa
1 changed files with 0 additions and 10 deletions

View File

@ -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)