mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 08:56:48 +02:00
remove endpoints from annotation test
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user