mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-17 14:36:33 +02:00
loadBalancerSourceRanges update
This commit is contained in:
@@ -3,6 +3,7 @@ package cluster
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -184,3 +185,12 @@ func (c *Cluster) deleteEtcdKey() error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func servicesEqual(svc1, svc2 *v1.Service) bool {
|
||||
//TODO: improve me
|
||||
if reflect.DeepEqual(svc1.Spec.LoadBalancerSourceRanges, svc2.Spec.LoadBalancerSourceRanges) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user