diff --git a/go.mod b/go.mod index be70a80..93c6a23 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module q42/mc-robot -go 1.13 +go 1.22 replace bitbucket.org/ww/goautoneg => github.com/adjust/goautoneg v0.0.0-20150426214442-d788f35a0315 @@ -11,12 +11,9 @@ require ( github.com/go-openapi/spec v0.19.0 github.com/google/go-cmp v0.3.0 github.com/operator-framework/operator-sdk v0.12.0 - github.com/pkg/errors v0.9.1 // indirect github.com/prometheus/client_golang v1.1.0 github.com/spf13/pflag v1.0.3 - github.com/stretchr/testify v1.6.1 // indirect gocloud.dev v0.18.0 - golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect k8s.io/api v0.0.0 k8s.io/apimachinery v0.0.0 k8s.io/client-go v11.0.0+incompatible @@ -24,6 +21,77 @@ require ( sigs.k8s.io/controller-runtime v0.3.0 ) +require ( + contrib.go.opencensus.io/exporter/ocagent v0.5.0 // indirect + github.com/Azure/go-autorest v12.0.0+incompatible // indirect + github.com/PuerkitoBio/purell v1.1.0 // indirect + github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/census-instrumentation/opencensus-proto v0.2.0 // indirect + github.com/coreos/prometheus-operator v0.29.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect + github.com/emicklei/go-restful v2.9.3+incompatible // indirect + github.com/evanphx/json-patch v4.5.0+incompatible // indirect + github.com/go-logr/logr v0.1.0 // indirect + github.com/go-openapi/jsonpointer v0.19.0 // indirect + github.com/go-openapi/jsonreference v0.19.0 // indirect + github.com/go-openapi/swag v0.17.2 // indirect + github.com/gogo/protobuf v1.2.1 // indirect + github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef // indirect + github.com/golang/protobuf v1.3.2 // indirect + github.com/google/gofuzz v1.0.0 // indirect + github.com/google/uuid v1.1.1 // indirect + github.com/google/wire v0.3.0 // indirect + github.com/googleapis/gax-go v2.0.2+incompatible // indirect + github.com/googleapis/gax-go/v2 v2.0.4 // indirect + github.com/googleapis/gnostic v0.3.1 // indirect + github.com/gophercloud/gophercloud v0.2.0 // indirect + github.com/grpc-ecosystem/grpc-gateway v1.9.2 // indirect + github.com/hashicorp/golang-lru v0.5.1 // indirect + github.com/hpcloud/tail v1.0.0 // indirect + github.com/imdario/mergo v0.3.7 // indirect + github.com/json-iterator/go v1.1.7 // indirect + github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.1 // indirect + github.com/onsi/ginkgo v1.8.0 // indirect + github.com/onsi/gomega v1.5.0 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 // indirect + github.com/prometheus/common v0.6.0 // indirect + github.com/prometheus/procfs v0.0.3 // indirect + github.com/stretchr/testify v1.6.1 // indirect + go.opencensus.io v0.22.0 // indirect + go.uber.org/atomic v1.4.0 // indirect + go.uber.org/multierr v1.1.0 // indirect + go.uber.org/zap v1.10.0 // indirect + golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4 // indirect + golang.org/x/net v0.0.0-20190812203447-cdfb69ac37fc // indirect + golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 // indirect + golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect + golang.org/x/sys v0.25.0 // indirect + golang.org/x/text v0.3.8 // indirect + golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect + golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect + gomodules.xyz/jsonpatch/v2 v2.0.1 // indirect + google.golang.org/api v0.6.0 // indirect + google.golang.org/appengine v1.6.1 // indirect + google.golang.org/genproto v0.0.0-20190620144150-6af8c5fc6601 // indirect + google.golang.org/grpc v1.21.1 // indirect + gopkg.in/fsnotify.v1 v1.4.7 // indirect + gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect + gopkg.in/yaml.v2 v2.2.2 // indirect + k8s.io/apiextensions-apiserver v0.0.0 // indirect + k8s.io/klog v0.3.3 // indirect + k8s.io/kube-state-metrics v1.7.2 // indirect + k8s.io/utils v0.0.0-20190506122338-8fab8cb257d5 // indirect + sigs.k8s.io/testing_frameworks v0.1.1 // indirect + sigs.k8s.io/yaml v1.1.0 // indirect +) + // Pinned to kubernetes-1.15.4 replace ( k8s.io/api => k8s.io/api v0.0.0-20190918195907-bd6ac527cfd2 diff --git a/go.sum b/go.sum index c163d87..c33c4d1 100644 --- a/go.sum +++ b/go.sum @@ -653,14 +653,15 @@ golang.org/x/sys v0.0.0-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190620070143-6f217b454f45/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190801041406-cbf593c0f2f3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/time v0.0.0-20161028155119-f51c12702a4d/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/pkg/controller/servicesync/servicesync_controller.go b/pkg/controller/servicesync/servicesync_controller.go index b8f46a5..ff7a720 100644 --- a/pkg/controller/servicesync/servicesync_controller.go +++ b/pkg/controller/servicesync/servicesync_controller.go @@ -663,6 +663,10 @@ func serviceForPeer(peerService mcv1.PeerService, namespace string) (corev1.Serv } for _, host := range peerService.Endpoints { + if host.IPAddress == "" { + log.Info("empty IP address, skipping", "host", host.Hostname) + continue + } addresses = append(addresses, corev1.EndpointAddress{IP: host.IPAddress}) }