diff --git a/pkg/cluster/util_test.go b/pkg/cluster/util_test.go index d303e8bcc..76311a353 100644 --- a/pkg/cluster/util_test.go +++ b/pkg/cluster/util_test.go @@ -407,6 +407,9 @@ func createPatroniResources(cluster *Cluster) error { func annotateResources(cluster *Cluster) error { clusterOptions := clusterLabelsOptions(cluster) patchData, err := metaAnnotationsPatch(externalAnnotations) + if err != nil { + return err + } stsList, err := cluster.KubeClient.StatefulSets(namespace).List(context.TODO(), clusterOptions) if err != nil {