remove endpoints from annotation test
This commit is contained in:
parent
f6212da046
commit
322a8266aa
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue