Skip to content

Can't start main.go using v0.1.1 #720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmoulliard opened this issue Nov 8, 2018 · 9 comments
Closed

Can't start main.go using v0.1.1 #720

cmoulliard opened this issue Nov 8, 2018 · 9 comments
Labels
triage/support Indicates an issue that is a support question.

Comments

@cmoulliard
Copy link

cmoulliard commented Nov 8, 2018

Bug Report

I can't launch main.go as it reports such prometheus or servicecatalog issues

Project : https://github.com/snowdrop/component-operator/blob/operator-0.1.1/cmd/component-operator/main.go#L59

OPERATOR_NAME=component-operator WATCH_NAMESPACE=my-spring-app KUBERNETES_CONFIG=$HOME/.kube/config go run cmd/component-operator/main.go
# github.com/snowdrop/component-operator/vendor/github.com/coreos/prometheus-operator/pkg/client/monitoring/v1
vendor/github.com/coreos/prometheus-operator/pkg/client/monitoring/v1/alertmanager.go:58:44: undefined: dynamic.Client
vendor/github.com/coreos/prometheus-operator/pkg/client/monitoring/v1/client.go:101:17: undefined: dynamic.Client
# github.com/snowdrop/component-operator/vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:72:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:73:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:74:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:75:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:76:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:77:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:39:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:44:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:49:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:54:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:54:13: too many errors

Questions :

  • Is there a version of k8s servicecatalog which is working with operator-sdk as 0.1.37 reports the error mentioned ?
  • What is the version of prometheus-core to be defined as dependency ?
@cmoulliard cmoulliard changed the title Can't start a main.go using v0.1.1 Can't start main.go using v0.1.1 Nov 8, 2018
@AlexNPavel AlexNPavel added the triage/support Indicates an issue that is a support question. label Nov 9, 2018
@AlexNPavel
Copy link
Contributor

It looks like the scheme.AddLabelConversionFunc function has changed from 1.11 -> 1.12 and now requires different arguments. This is the change: kubernetes-retired/service-catalog@ff7f8a0#diff-6f555a2a1b3ea5d792e9aedf19e45bb3. You would probably have to use a version before that commit to fix the service catalog issue until we upgrade to kubernetes 1.12.

For the prometheus operator issues, I'm not quite sure why that's having issues. It looks like it should work. Maybe somebody else can help figure that out.

@estroz
Copy link
Member

estroz commented Nov 9, 2018

@cmoulliard can you try running dep ensure and try to reproduce your error? I pulled your operator repo, ran make build without issue, and did not see any errors when running your posted command. Thanks!

@cmoulliard
Copy link
Author

I was able to resolve the dep issue of prometheus by adding this dep to the tom file. Can you add it to operator-sdk code generator's please ?

[[override]]
  name = "github.com/coreos/prometheus-operator"
  version = "0.24.0"

@cmoulliard
Copy link
Author

I still continue to have the dep problem for the service catalog even if I use their version 0.1.30 which is aligned to k8s.io/apimachinery version = "kubernetes-1.11.0"

OPERATOR_NAME=component-operator WATCH_NAMESPACE=my-spring-app KUBERNETES_CONFIG=$HOME/.kube/config go run cmd/component-operator/main.go
# github.com/snowdrop/component-operator/vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:72:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:73:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:74:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:75:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:76:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/register.go:77:36: not enough arguments in call to scheme.AddFieldLabelConversionFunc
        have (schema.GroupVersionKind, func(string, string) (string, string, error))
        want (string, string, runtime.FieldLabelConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:39:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:44:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:49:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:54:13: s.AddGeneratedConversionFunc undefined (type *runtime.Scheme has no field or method AddGeneratedConversionFunc)
vendor/github.com/kubernetes-incubator/service-catalog/pkg/apis/servicecatalog/v1beta1/zz_generated.conversion.go:54:13: too many errors

Here is the output of the graph calculated by dep ensure -v

Root project is "github.com/snowdrop/component-operator"
 17 transitively valid internal packages
 45 external packages imported from 16 projects
(0)   ✓ select (root)
(1)     ? attempt k8s.io/gengo with 1 pkgs; 1 versions to try
(1)         try k8s.io/gengo@master
(1)     ✓ select k8s.io/gengo@master w/5 pkgs
(2)     ? attempt github.com/openshift/api with 3 pkgs; 7 versions to try
(2)         try github.com/openshift/api@v3.9.0
(3)     ✗   github.com/openshift/api@v3.9.0 not allowed by constraint release-3.11:
(3)         release-3.11 from (root)
(2)         try github.com/openshift/api@master
(3)     ✗   github.com/openshift/api@master not allowed by constraint release-3.11:
(3)         release-3.11 from (root)
(2)         try github.com/openshift/api@release-3.10
(3)     ✗   github.com/openshift/api@release-3.10 not allowed by constraint release-3.11:
(3)         release-3.11 from (root)
(2)         try github.com/openshift/api@release-3.11
(2)     ✓ select github.com/openshift/api@release-3.11 w/5 pkgs
(3)     ? attempt github.com/ghodss/yaml with 1 pkgs; 3 versions to try
(3)         try github.com/ghodss/yaml@v1.0.0
(3)     ✓ select github.com/ghodss/yaml@v1.0.0 w/1 pkgs
(4)     ? attempt sigs.k8s.io/controller-runtime with 9 pkgs; 13 versions to try
(4)         try sigs.k8s.io/controller-runtime@v0.1.7
(4)     ✓ select sigs.k8s.io/controller-runtime@v0.1.7 w/25 pkgs
(5)     ? attempt github.com/mattbaird/jsonpatch with 1 pkgs; 1 versions to try
(5)         try github.com/mattbaird/jsonpatch@master
(5)     ✓ select github.com/mattbaird/jsonpatch@master w/1 pkgs
(6)     ? attempt github.com/go-logr/logr with 1 pkgs; 2 versions to try
(6)         try github.com/go-logr/logr@v0.1.0
(6)     ✓ select github.com/go-logr/logr@v0.1.0 w/1 pkgs
(7)     ? attempt github.com/shurcooL/httpfs with 1 pkgs; 3 versions to try
(7)         try github.com/shurcooL/httpfs@master
(7)     ✓ select github.com/shurcooL/httpfs@master w/1 pkgs
(8)     ? attempt k8s.io/apimachinery with 8 pkgs; 171 versions to try
(8)         try k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae
(8)     ✓ select k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae w/30 pkgs
(9)     ? attempt github.com/golang/glog with 1 pkgs; 1 versions to try
(9)         try github.com/golang/glog@master
(9)     ✓ select github.com/golang/glog@master w/1 pkgs
(10)  ? attempt github.com/google/gofuzz with 1 pkgs; 1 versions to try
(10)      try github.com/google/gofuzz@master
(10)  ✓ select github.com/google/gofuzz@master w/1 pkgs
(11)  ? attempt gopkg.in/inf.v0 with 1 pkgs; 2 versions to try
(11)      try gopkg.in/inf.v0@v0.9.1
(11)  ✓ select gopkg.in/inf.v0@v0.9.1 w/1 pkgs
(12)  ? attempt gopkg.in/yaml.v2 with 1 pkgs; 6 versions to try
(12)      try gopkg.in/yaml.v2@v2.2.1
(12)  ✓ select gopkg.in/yaml.v2@v2.2.1 w/1 pkgs
(13)  ? attempt github.com/go-logr/zapr with 1 pkgs; 2 versions to try
(13)      try github.com/go-logr/zapr@v0.1.0
(14)  ✗   github.com/go-logr/zapr@v0.1.0 depends on github.com/go-logr/logr with master, but that's already selected at v0.1.0
(13)      try github.com/go-logr/zapr@master
(14)  ✗   github.com/go-logr/zapr@master depends on github.com/go-logr/logr with master, but that's already selected at v0.1.0
(13)    ← no more versions of github.com/go-logr/zapr to try; begin backtrack
(12)  ← backtrack: no more versions of gopkg.in/yaml.v2 to try
(11)  ← backtrack: no more versions of gopkg.in/inf.v0 to try
(10)  ← backtrack: no more versions of github.com/google/gofuzz to try
(9)     ← backtrack: no more versions of github.com/golang/glog to try
(8)     ← backtrack: no more versions of k8s.io/apimachinery to try
(7)     ← backtrack: no more versions of github.com/shurcooL/httpfs to try
(6)     ← backtrack: no more versions of github.com/go-logr/logr to try
(6)       ? continue github.com/go-logr/logr with 1 pkgs; 1 more versions to try
(6)         try github.com/go-logr/logr@master
(6)     ✓ select github.com/go-logr/logr@master w/1 pkgs
(7)     ? attempt go.uber.org/zap with 2 pkgs; 24 versions to try
(7)         try go.uber.org/zap@v1.9.1
(7)     ✓ select go.uber.org/zap@v1.9.1 w/6 pkgs
(8)     ? attempt github.com/shurcooL/httpfs with 1 pkgs; 3 versions to try
(8)         try github.com/shurcooL/httpfs@master
(8)     ✓ select github.com/shurcooL/httpfs@master w/1 pkgs
(9)     ? attempt github.com/go-logr/zapr with 1 pkgs; 2 versions to try
(9)         try github.com/go-logr/zapr@v0.1.0
(9)     ✓ select github.com/go-logr/zapr@v0.1.0 w/1 pkgs
(10)  ? attempt go.uber.org/multierr with 1 pkgs; 5 versions to try
(10)      try go.uber.org/multierr@v1.1.0
(10)  ✓ select go.uber.org/multierr@v1.1.0 w/1 pkgs
(11)  ? attempt golang.org/x/net with 1 pkgs; 7 versions to try
(11)      try golang.org/x/net@master
(11)  ✓ select golang.org/x/net@master w/4 pkgs
(12)  ? attempt github.com/gogo/protobuf with 2 pkgs; 26 versions to try
(12)      try github.com/gogo/protobuf@v1.1.1
(12)  ✓ select github.com/gogo/protobuf@v1.1.1 w/2 pkgs
(13)  ? attempt go.uber.org/atomic with 1 pkgs; 9 versions to try
(13)      try go.uber.org/atomic@v1.3.2
(13)  ✓ select go.uber.org/atomic@v1.3.2 w/1 pkgs
(14)  ? attempt k8s.io/apimachinery with 9 pkgs; 171 versions to try
(14)      try k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae
(14)  ✓ select k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae w/24 pkgs
(15)  ? attempt gopkg.in/inf.v0 with 1 pkgs; 2 versions to try
(15)      try gopkg.in/inf.v0@v0.9.1
(15)  ✓ select gopkg.in/inf.v0@v0.9.1 w/1 pkgs
(16)  ? revisit golang.org/x/net to add 1 pkgs
(16)    ✓ include 1 more pkgs from golang.org/x/net@master
(16)  ? attempt github.com/spf13/pflag with 1 pkgs; 6 versions to try
(17)      try github.com/spf13/pflag@v1.0.3
(17)  ✓ select github.com/spf13/pflag@v1.0.3 w/1 pkgs
(17)  ? attempt k8s.io/client-go with 5 pkgs; 192 versions to try
(18)      try k8s.io/client-go@1f13a808da65775f22cbf47862c4e5898d8f4ca1
(18)  ✓ select k8s.io/client-go@1f13a808da65775f22cbf47862c4e5898d8f4ca1 w/22 pkgs
(18)  ? revisit golang.org/x/net to add 1 pkgs
(19)    ✓ include 4 more pkgs from golang.org/x/net@master
(18)  ? attempt golang.org/x/oauth2 with 2 pkgs; 1 versions to try
(20)      try golang.org/x/oauth2@master
(20)  ✓ select golang.org/x/oauth2@master w/5 pkgs
(19)  ? revisit golang.org/x/net to add 1 pkgs
(21)    ✓ include 2 more pkgs from golang.org/x/net@master
(19)  ? attempt golang.org/x/text with 3 pkgs; 5 versions to try
(22)      try golang.org/x/text@v0.3.0
(22)  ✓ select golang.org/x/text@v0.3.0 w/14 pkgs
(20)  ? revisit k8s.io/apimachinery to add 10 pkgs
(23)    ✓ include 30 more pkgs from k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae
(20)  ? attempt github.com/pkg/errors with 1 pkgs; 11 versions to try
(24)      try github.com/pkg/errors@v0.8.0
(24)  ✓ select github.com/pkg/errors@v0.8.0 w/1 pkgs
(21)  ? attempt github.com/golang/glog with 1 pkgs; 1 versions to try
(25)      try github.com/golang/glog@master
(25)  ✓ select github.com/golang/glog@master w/1 pkgs
(22)  ? attempt golang.org/x/time with 1 pkgs; 1 versions to try
(26)      try golang.org/x/time@master
(26)  ✓ select golang.org/x/time@master w/1 pkgs
(23)  ? attempt github.com/openshift/client-go with 1 pkgs; 6 versions to try
(27)      try github.com/openshift/client-go@v3.9.0
(28)  ✗   github.com/openshift/client-go@v3.9.0 not allowed by constraint release-3.11:
(28)      release-3.11 from (root)
(27)      try github.com/openshift/client-go@master
(28)  ✗   github.com/openshift/client-go@master not allowed by constraint release-3.11:
(28)      release-3.11 from (root)
(27)      try github.com/openshift/client-go@release-3.10
(28)  ✗   github.com/openshift/client-go@release-3.10 not allowed by constraint release-3.11:
(28)      release-3.11 from (root)
(27)      try github.com/openshift/client-go@release-3.11
(27)  ✓ select github.com/openshift/client-go@release-3.11 w/2 pkgs
(24)  ? revisit k8s.io/apimachinery to add 30 pkgs
(28)    ✓ include 30 more pkgs from k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae
(24)  ? attempt github.com/sirupsen/logrus with 1 pkgs; 55 versions to try
(29)      try github.com/sirupsen/logrus@v1.2.0
(29)  ✓ select github.com/sirupsen/logrus@v1.2.0 w/1 pkgs
(25)  ? attempt github.com/google/gofuzz with 1 pkgs; 1 versions to try
(30)      try github.com/google/gofuzz@master
(30)  ✓ select github.com/google/gofuzz@master w/1 pkgs
(26)  ? attempt github.com/konsorten/go-windows-terminal-sequences with 1 pkgs; 2 versions to try
(31)      try github.com/konsorten/go-windows-terminal-sequences@v1.0.1
(31)  ✓ select github.com/konsorten/go-windows-terminal-sequences@v1.0.1 w/1 pkgs
(27)  ? attempt cloud.google.com/go with 1 pkgs; 37 versions to try
(32)      try cloud.google.com/go@v0.32.0
(32)  ✓ select cloud.google.com/go@v0.32.0 w/1 pkgs
(28)  ? attempt k8s.io/api with 2 pkgs; 147 versions to try
(33)      try k8s.io/api@2d6f90ab1293a1fb871cf149423ebb72aa7423aa
(33)  ✓ select k8s.io/api@2d6f90ab1293a1fb871cf149423ebb72aa7423aa w/3 pkgs
(29)  ? attempt gopkg.in/yaml.v2 with 1 pkgs; 6 versions to try
(34)      try gopkg.in/yaml.v2@v2.2.1
(34)  ✓ select gopkg.in/yaml.v2@v2.2.1 w/1 pkgs
(30)  ? attempt k8s.io/klog with 1 pkgs; 10 versions to try
(35)      try k8s.io/klog@master
(35)  ✓ select k8s.io/klog@master w/1 pkgs
(31)  ? revisit k8s.io/client-go to add 11 pkgs
(36)    ✓ include 57 more pkgs from k8s.io/client-go@1f13a808da65775f22cbf47862c4e5898d8f4ca1
(31)  ? revisit k8s.io/api to add 26 pkgs
(37)    ✓ include 27 more pkgs from k8s.io/api@2d6f90ab1293a1fb871cf149423ebb72aa7423aa
(31)  ? revisit k8s.io/apimachinery to add 4 pkgs
(38)    ✓ include 36 more pkgs from k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae
(31)  ? attempt github.com/golang/groupcache with 1 pkgs; 1 versions to try
(39)      try github.com/golang/groupcache@master
(39)  ✓ select github.com/golang/groupcache@master w/1 pkgs
(32)  ? attempt github.com/gregjones/httpcache with 2 pkgs; 2 versions to try
(40)      try github.com/gregjones/httpcache@master
(40)  ✓ select github.com/gregjones/httpcache@master w/2 pkgs
(33)  ? revisit k8s.io/api to add 1 pkgs
(41)    ✓ include 3 more pkgs from k8s.io/api@2d6f90ab1293a1fb871cf149423ebb72aa7423aa
(33)  ? attempt golang.org/x/crypto with 1 pkgs; 2 versions to try
(42)      try golang.org/x/crypto@master
(42)  ✓ select golang.org/x/crypto@master w/1 pkgs
(34)  ? attempt github.com/hashicorp/golang-lru with 1 pkgs; 3 versions to try
(43)      try github.com/hashicorp/golang-lru@v0.5.0
(43)  ✓ select github.com/hashicorp/golang-lru@v0.5.0 w/2 pkgs
(35)  ? revisit k8s.io/api to add 1 pkgs
(44)    ✓ include 1 more pkgs from k8s.io/api@2d6f90ab1293a1fb871cf149423ebb72aa7423aa
(35)  ? attempt google.golang.org/appengine with 2 pkgs; 12 versions to try
(45)      try google.golang.org/appengine@v1.3.0
(45)  ✓ select google.golang.org/appengine@v1.3.0 w/10 pkgs
(36)  ? revisit k8s.io/apimachinery to add 1 pkgs
(46)    ✓ include 1 more pkgs from k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae
(36)  ? attempt github.com/davecgh/go-spew with 1 pkgs; 4 versions to try
(47)      try github.com/davecgh/go-spew@v1.1.1
(47)  ✓ select github.com/davecgh/go-spew@v1.1.1 w/1 pkgs
(37)  ? attempt github.com/peterbourgon/diskv with 1 pkgs; 4 versions to try
(48)      try github.com/peterbourgon/diskv@v2.0.1
(48)  ✓ select github.com/peterbourgon/diskv@v2.0.1 w/1 pkgs
(38)  ? attempt github.com/google/btree with 1 pkgs; 1 versions to try
(49)      try github.com/google/btree@master
(49)  ✓ select github.com/google/btree@master w/1 pkgs
(39)  ? attempt github.com/petar/GoLLRB with 1 pkgs; 2 versions to try
(50)      try github.com/petar/GoLLRB@master
(50)  ✓ select github.com/petar/GoLLRB@master w/1 pkgs
(40)  ? attempt golang.org/x/tools with 1 pkgs; 11 versions to try
(51)      try golang.org/x/tools@master
(51)  ✓ select golang.org/x/tools@master w/4 pkgs
(41)  ? attempt github.com/imdario/mergo with 1 pkgs; 20 versions to try
(52)      try github.com/imdario/mergo@v0.3.6
(52)  ✓ select github.com/imdario/mergo@v0.3.6 w/1 pkgs
(42)  ? attempt github.com/googleapis/gnostic with 1 pkgs; 14 versions to try
(53)      try github.com/googleapis/gnostic@v0.2.0
(53)  ✓ select github.com/googleapis/gnostic@v0.2.0 w/3 pkgs
(43)  ? attempt golang.org/x/sys with 2 pkgs; 2 versions to try
(54)      try golang.org/x/sys@master
(54)  ✓ select golang.org/x/sys@master w/2 pkgs
(44)  ? attempt github.com/golang/protobuf with 1 pkgs; 8 versions to try
(55)      try github.com/golang/protobuf@v1.2.0
(55)  ✓ select github.com/golang/protobuf@v1.2.0 w/1 pkgs
(45)  ? attempt github.com/kubernetes-incubator/service-catalog with 1 pkgs; 68 versions to try
(56)      try github.com/kubernetes-incubator/service-catalog@v0.1.38
(56)  ✓ select github.com/kubernetes-incubator/service-catalog@v0.1.38 w/3 pkgs
(46)  ? attempt github.com/json-iterator/go with 1 pkgs; 25 versions to try
(57)      try github.com/json-iterator/go@v1.1.5
(57)  ✓ select github.com/json-iterator/go@v1.1.5 w/1 pkgs
(47)  ? revisit github.com/golang/protobuf to add 2 pkgs
(58)    ✓ include 5 more pkgs from github.com/golang/protobuf@v1.2.0
(47)  ? attempt github.com/modern-go/reflect2 with 1 pkgs; 4 versions to try
(59)      try github.com/modern-go/reflect2@1.0.1
(59)  ✓ select github.com/modern-go/reflect2@1.0.1 w/1 pkgs
(48)  ? attempt github.com/modern-go/concurrent with 1 pkgs; 5 versions to try
(60)      try github.com/modern-go/concurrent@1.0.3
(60)  ✓ select github.com/modern-go/concurrent@1.0.3 w/1 pkgs
(49)  ? attempt k8s.io/kube-openapi with 1 pkgs; 5 versions to try
(61)      try k8s.io/kube-openapi@master
(61)  ✓ select k8s.io/kube-openapi@master w/1 pkgs
(50)  ? attempt github.com/spf13/cobra with 1 pkgs; 5 versions to try
(62)      try github.com/spf13/cobra@v0.0.3
(62)  ✓ select github.com/spf13/cobra@v0.0.3 w/1 pkgs
(51)  ? attempt github.com/inconshreveable/mousetrap with 1 pkgs; 3 versions to try
(63)      try github.com/inconshreveable/mousetrap@v1.0
(63)  ✓ select github.com/inconshreveable/mousetrap@v1.0 w/1 pkgs
(52)  ? attempt github.com/operator-framework/operator-sdk with 3 pkgs; 13 versions to try
(64)      try github.com/operator-framework/operator-sdk@v0.1.1
(65)  ✗   github.com/operator-framework/operator-sdk@v0.1.1 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.1.0
(65)  ✗   github.com/operator-framework/operator-sdk@v0.1.0 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.0.7
(65)  ✗   github.com/operator-framework/operator-sdk@v0.0.7 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.0.6
(65)  ✗   github.com/operator-framework/operator-sdk@v0.0.6 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.0.5
(65)  ✗   github.com/operator-framework/operator-sdk@v0.0.5 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.0.4
(65)  ✗   github.com/operator-framework/operator-sdk@v0.0.4 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.0.3
(65)  ✗   github.com/operator-framework/operator-sdk@v0.0.3 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.0.2
(65)  ✗   github.com/operator-framework/operator-sdk@v0.0.2 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@v0.0.1
(65)  ✗   github.com/operator-framework/operator-sdk@v0.0.1 not allowed by constraint master:
(65)      master from (root)
(64)      try github.com/operator-framework/operator-sdk@master
(64)  ✓ select github.com/operator-framework/operator-sdk@master w/3 pkgs
(53)  ? attempt github.com/coreos/prometheus-operator with 1 pkgs; 73 versions to try
(65)      try github.com/coreos/prometheus-operator@v0.25.0
(66)  ✗   github.com/coreos/prometheus-operator@v0.25.0 not allowed by constraint ^0.24.0:
(66)      ^0.24.0 from github.com/operator-framework/operator-sdk@master
(65)      try github.com/coreos/prometheus-operator@v0.24.0
(65)  ✓ select github.com/coreos/prometheus-operator@v0.24.0 w/1 pkgs
(54)  ? revisit k8s.io/kube-openapi to add 1 pkgs
(66)    ✓ include 1 more pkgs from k8s.io/kube-openapi@master
(54)  ? attempt github.com/pborman/uuid with 1 pkgs; 8 versions to try
(67)      try github.com/pborman/uuid@v1.2
(67)  ✓ select github.com/pborman/uuid@v1.2 w/1 pkgs
(55)  ? revisit k8s.io/client-go to add 1 pkgs
(68)    ✓ include 17 more pkgs from k8s.io/client-go@1f13a808da65775f22cbf47862c4e5898d8f4ca1
(55)  ? attempt github.com/emicklei/go-restful with 1 pkgs; 25 versions to try
(69)      try github.com/emicklei/go-restful@v2.8.0
(69)  ✓ select github.com/emicklei/go-restful@v2.8.0 w/2 pkgs
(56)  ? attempt github.com/google/uuid with 1 pkgs; 9 versions to try
(70)      try github.com/google/uuid@v1.0.0
(70)  ✓ select github.com/google/uuid@v1.0.0 w/1 pkgs
(57)  ? attempt github.com/prometheus/client_golang with 1 pkgs; 17 versions to try
(71)      try github.com/prometheus/client_golang@v0.9.1
(71)  ✓ select github.com/prometheus/client_golang@v0.9.1 w/3 pkgs
(58)  ? attempt github.com/prometheus/procfs with 1 pkgs; 2 versions to try
(72)      try github.com/prometheus/procfs@master
(72)  ✓ select github.com/prometheus/procfs@master w/4 pkgs
(59)  ? attempt github.com/prometheus/client_model with 1 pkgs; 3 versions to try
(73)      try github.com/prometheus/client_model@master
(73)  ✓ select github.com/prometheus/client_model@master w/1 pkgs
(60)  ? attempt github.com/prometheus/common with 2 pkgs; 3 versions to try
(74)      try github.com/prometheus/common@master
(74)  ✓ select github.com/prometheus/common@master w/3 pkgs
(61)  ? attempt github.com/go-openapi/spec with 1 pkgs; 10 versions to try
(75)      try github.com/go-openapi/spec@v0.17.2
(76)  ✗   github.com/go-openapi/spec@v0.17.2 not allowed by constraint master:
(76)      master from github.com/coreos/prometheus-operator@v0.24.0
(75)      try github.com/go-openapi/spec@v0.17.1
(76)  ✗   github.com/go-openapi/spec@v0.17.1 not allowed by constraint master:
(76)      master from github.com/coreos/prometheus-operator@v0.24.0
(75)      try github.com/go-openapi/spec@v0.17.0
(76)  ✗   github.com/go-openapi/spec@v0.17.0 not allowed by constraint master:
(76)      master from github.com/coreos/prometheus-operator@v0.24.0
(75)      try github.com/go-openapi/spec@0.16.0
(76)  ✗   github.com/go-openapi/spec@0.16.0 not allowed by constraint master:
(76)      master from github.com/coreos/prometheus-operator@v0.24.0
(75)      try github.com/go-openapi/spec@0.15.0
(76)  ✗   github.com/go-openapi/spec@0.15.0 not allowed by constraint master:
(76)      master from github.com/coreos/prometheus-operator@v0.24.0
(75)      try github.com/go-openapi/spec@master
(75)  ✓ select github.com/go-openapi/spec@master w/1 pkgs
(62)  ? attempt github.com/beorn7/perks with 1 pkgs; 5 versions to try
(76)      try github.com/beorn7/perks@master
(76)  ✓ select github.com/beorn7/perks@master w/1 pkgs
(63)  ? attempt github.com/go-openapi/jsonpointer with 1 pkgs; 6 versions to try
(77)      try github.com/go-openapi/jsonpointer@v0.17.2
(77)  ✓ select github.com/go-openapi/jsonpointer@v0.17.2 w/1 pkgs
(64)  ? attempt github.com/go-openapi/swag with 1 pkgs; 7 versions to try
(78)      try github.com/go-openapi/swag@v0.17.2
(78)  ✓ select github.com/go-openapi/swag@v0.17.2 w/1 pkgs
(65)  ? attempt github.com/mailru/easyjson with 2 pkgs; 2 versions to try
(79)      try github.com/mailru/easyjson@master
(79)  ✓ select github.com/mailru/easyjson@master w/3 pkgs
(66)  ? attempt k8s.io/code-generator with 7 pkgs; 147 versions to try
(80)      try k8s.io/code-generator@6702109cc68eb6fe6350b83e14407c8d7309fd1a
(80)  ✓ select k8s.io/code-generator@6702109cc68eb6fe6350b83e14407c8d7309fd1a w/24 pkgs
(67)  ? revisit k8s.io/gengo to add 5 pkgs
(81)    ✓ include 8 more pkgs from k8s.io/gengo@master
(67)  ? revisit k8s.io/kube-openapi to add 1 pkgs
(82)    ✓ include 5 more pkgs from k8s.io/kube-openapi@master
(67)  ? revisit k8s.io/gengo to add 1 pkgs
(83)    ✓ include 1 more pkgs from k8s.io/gengo@master
(67)  ? attempt github.com/go-openapi/jsonreference with 1 pkgs; 6 versions to try
(84)      try github.com/go-openapi/jsonreference@v0.17.2
(84)  ✓ select github.com/go-openapi/jsonreference@v0.17.2 w/1 pkgs
(68)  ? attempt github.com/matttproud/golang_protobuf_extensions with 1 pkgs; 7 versions to try
(85)      try github.com/matttproud/golang_protobuf_extensions@v1.0.1
(85)  ✓ select github.com/matttproud/golang_protobuf_extensions@v1.0.1 w/1 pkgs
(69)  ? attempt github.com/PuerkitoBio/purell with 1 pkgs; 8 versions to try
(86)      try github.com/PuerkitoBio/purell@v1.1.0
(86)  ✓ select github.com/PuerkitoBio/purell@v1.1.0 w/1 pkgs
(70)  ? revisit golang.org/x/text to add 1 pkgs
(87)    ✓ include 6 more pkgs from golang.org/x/text@v0.3.0
(70)  ? attempt github.com/PuerkitoBio/urlesc with 1 pkgs; 1 versions to try
(88)      try github.com/PuerkitoBio/urlesc@master
(88)  ✓ select github.com/PuerkitoBio/urlesc@master w/1 pkgs
(71)  ? revisit golang.org/x/net to add 1 pkgs
(89)    ✓ include 1 more pkgs from golang.org/x/net@master
  ✓ found solution with 333 packages from 70 projects

Solver wall times by segment:
     b-list-versions: 45.407222276s
         b-list-pkgs: 17.043623825s
              b-gmal: 14.474784912s
     b-source-exists:  4.694755668s
  b-deduce-proj-root:  2.896827226s
             satisfy:  122.701939ms
         select-atom:   92.685138ms
         select-root:    3.444862ms
            new-atom:    3.189433ms
            unselect:    1.908374ms
               other:     862.751µs
            add-atom:     179.113µs
           backtrack:      69.875µs
    b-rev-present-in:      56.949µs

  TOTAL: 1m24.742312341s

# Bringing vendor into sync
(1/70) Wrote go.uber.org/multierr@v1.1.0: new project
(2/70) Wrote golang.org/x/tools@master: new project
(3/70) Wrote google.golang.org/appengine@v1.3.0: new project
(4/70) Wrote github.com/prometheus/common@master: new project
(5/70) Wrote github.com/go-openapi/jsonpointer@v0.17.2: new project
(6/70) Wrote github.com/inconshreveable/mousetrap@v1.0: new project
(7/70) Wrote github.com/pkg/errors@v0.8.0: new project
(8/70) Wrote github.com/golang/groupcache@master: new project
(9/70) Wrote github.com/go-openapi/swag@v0.17.2: new project
(10/70) Wrote k8s.io/api@2d6f90ab1293a1fb871cf149423ebb72aa7423aa: new project
(11/70) Wrote github.com/prometheus/client_golang@v0.9.1: new project
(12/70) Wrote github.com/beorn7/perks@master: new project
(13/70) Wrote github.com/openshift/api@release-3.11: new project
(14/70) Wrote github.com/mattbaird/jsonpatch@master: new project
(15/70) Wrote github.com/prometheus/procfs@master: new project
(16/70) Wrote github.com/spf13/pflag@v1.0.3: new project
(17/70) Wrote github.com/emicklei/go-restful@v2.8.0: new project
(18/70) Wrote k8s.io/apimachinery@103fd098999dc9c0c88536f5c9ad2e5da39373ae: new project
(19/70) Wrote github.com/shurcooL/httpfs@master: new project
(20/70) Wrote k8s.io/gengo@master: new project
(21/70) Wrote github.com/petar/GoLLRB@master: new project
(22/70) Wrote github.com/json-iterator/go@v1.1.5: new project
(23/70) Wrote github.com/modern-go/concurrent@1.0.3: new project
(24/70) Wrote github.com/gogo/protobuf@v1.1.1: new project
(25/70) Wrote github.com/googleapis/gnostic@v0.2.0: new project
(26/70) Wrote github.com/spf13/cobra@v0.0.3: new project
(27/70) Wrote github.com/prometheus/client_model@master: new project
(28/70) Wrote sigs.k8s.io/controller-runtime@v0.1.7: new project
(29/70) Wrote github.com/hashicorp/golang-lru@v0.5.0: new project
(30/70) Wrote github.com/operator-framework/operator-sdk@master: new project
(31/70) Wrote github.com/coreos/prometheus-operator@v0.24.0: new project
(32/70) Wrote k8s.io/klog@master: new project
(33/70) Wrote github.com/go-openapi/jsonreference@v0.17.2: new project
(34/70) Wrote github.com/davecgh/go-spew@v1.1.1: new project
(35/70) Wrote github.com/imdario/mergo@v0.3.6: new project
(36/70) Wrote github.com/ghodss/yaml@v1.0.0: new project
(37/70) Wrote github.com/golang/glog@master: new project
(38/70) Wrote k8s.io/code-generator@6702109cc68eb6fe6350b83e14407c8d7309fd1a: new project
(39/70) Wrote github.com/matttproud/golang_protobuf_extensions@v1.0.1: new project
(40/70) Wrote github.com/golang/protobuf@v1.2.0: new project
(41/70) Wrote github.com/konsorten/go-windows-terminal-sequences@v1.0.1: new project
(42/70) Wrote go.uber.org/zap@v1.9.1: new project
(43/70) Wrote golang.org/x/sys@master: new project
(44/70) Wrote golang.org/x/text@v0.3.0: new project
(45/70) Wrote github.com/PuerkitoBio/purell@v1.1.0: new project
(46/70) Wrote github.com/PuerkitoBio/urlesc@master: new project
(47/70) Wrote golang.org/x/oauth2@master: new project
(48/70) Wrote github.com/peterbourgon/diskv@v2.0.1: new project
(49/70) Wrote github.com/pborman/uuid@v1.2: new project
(50/70) Wrote gopkg.in/yaml.v2@v2.2.1: new project
(51/70) Wrote go.uber.org/atomic@v1.3.2: new project
(52/70) Wrote k8s.io/kube-openapi@master: new project
(53/70) Wrote github.com/kubernetes-incubator/service-catalog@v0.1.38: new project
(54/70) Wrote github.com/modern-go/reflect2@1.0.1: new project
(55/70) Wrote github.com/go-openapi/spec@master: new project
(56/70) Wrote github.com/go-logr/zapr@v0.1.0: new project
(57/70) Wrote k8s.io/client-go@1f13a808da65775f22cbf47862c4e5898d8f4ca1: new project
(58/70) Wrote github.com/google/gofuzz@master: new project
(59/70) Wrote github.com/sirupsen/logrus@v1.2.0: new project
(60/70) Wrote golang.org/x/time@master: new project
(61/70) Wrote github.com/mailru/easyjson@master: new project
(62/70) Wrote golang.org/x/crypto@master: new project
(63/70) Wrote golang.org/x/net@master: new project
(64/70) Wrote github.com/openshift/client-go@release-3.11: new project
(65/70) Wrote github.com/go-logr/logr@master: new project
(66/70) Wrote github.com/gregjones/httpcache@master: new project
(67/70) Wrote cloud.google.com/go@v0.32.0: new project
(68/70) Wrote github.com/google/btree@master: new project
(69/70) Wrote github.com/google/uuid@v1.0.0: new project
(70/70) Wrote gopkg.in/inf.v0@v0.9.1: new project

@cmoulliard
Copy link
Author

From the reading of the dep ensure -v output, it looks like that the latest version of the service-catalog is used 0.1.38 and which is responsible of the problem. I will update my toml file to avoid to take this latest version but instead 0.1.30

@lilic
Copy link
Member

lilic commented Nov 9, 2018

@cmoulliard Did that solve your problem?

@cmoulliard
Copy link
Author

Yes. If you then add this dependency within the code generated by the operator-sdk, then the ticket could be closed

[[override]]
  name = "github.com/coreos/prometheus-operator"
  version = "0.24.0"

@shawn-hurley
Copy link
Member

@cmoulliard I am not seeing this problem when you create a new operator with the sdk. This leads me to believe that the reason you had to override this was due to some other dependencies that you brought in. I do not believe that the SDK should be setting an override for a dependacy that it does not need.

@lilic
Copy link
Member

lilic commented Nov 9, 2018

Yes up to now it didn't need that, something happened in the latest release of the prometheus-operator that broke dep when I was versioning. But I suspect you @cmoulliard stumbled upon this due to one of his dependencies not our sdk as you do not seem to use the metrics helpers in the project.

In any case I pined to that release of the operator in this PR #715 as we need that from now on. Closing this for now.

@lilic lilic closed this as completed Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/support Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

5 participants