loadBalancerSourceRanges update

This commit is contained in:
Murat Kabilov
2017-05-12 11:41:26 +02:00
parent fc127069ab
commit 1c6e7ac2e7
3 changed files with 42 additions and 22 deletions
+10
View File
@@ -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
}