Skip to content

Instantly share code, notes, and snippets.

@danehans
Created January 14, 2020 23:43
Show Gist options
  • Select an option

  • Save danehans/616f70c6b2ae4477a13659e1758e8732 to your computer and use it in GitHub Desktop.

Select an option

Save danehans/616f70c6b2ae4477a13659e1758e8732 to your computer and use it in GitHub Desktop.
origin_ext_test_build
$ make WHAT=cmd/openshift-tests
hack/build-go.sh cmd/openshift-tests
++ Building go targets for darwin/amd64: cmd/openshift-tests
# github.com/openshift/origin/pkg/monitor
pkg/monitor/api.go:38:51: cannot use clusterConfig (type *"github.com/openshift/origin/vendor/k8s.io/client-go/rest".Config) as type *"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/client-go/rest".Config in argument to versioned.NewForConfig
pkg/monitor/api.go:62:60: cannot use &pollingConfig (type *"github.com/openshift/origin/vendor/k8s.io/client-go/rest".Config) as type *"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/client-go/rest".Config in argument to "github.com/openshift/origin/vendor/github.com/openshift/client-go/image/clientset/versioned/typed/image/v1".NewForConfig
pkg/monitor/api.go:94:105: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions literal (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions) as type "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions in argument to openshiftPollingClient.ImageStreams("openshift-apiserver").Get
pkg/monitor/operator.go:22:5: cannot use *"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterOperatorList value as type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object in return argument:
*"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterOperatorList does not implement "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object (wrong type for DeepCopyObject method)
have DeepCopyObject() "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/runtime".Object
want DeepCopyObject() "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object
pkg/monitor/operator.go:22:53: cannot use options (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to client.ConfigV1().ClusterOperators().List
pkg/monitor/operator.go:25:5: cannot use "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/watch".Interface value as type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/watch".Interface in return argument:
"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/watch".Interface does not implement "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/watch".Interface (wrong type for ResultChan method)
have ResultChan() <-chan "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/watch".Event
want ResultChan() <-chan "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/watch".Event
pkg/monitor/operator.go:25:54: cannot use options (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to client.ConfigV1().ClusterOperators().Watch
pkg/monitor/operator.go:28:3: cannot use &"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterOperator literal (type *"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterOperator) as type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object in argument to cache.NewSharedIndexInformer:
*"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterOperator does not implement "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object (wrong type for DeepCopyObject method)
have DeepCopyObject() "github.com/openshift/origin/vendor/github.com/openshift/api/vendor/k8s.io/apimachinery/pkg/runtime".Object
want DeepCopyObject() "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object
pkg/monitor/operator.go:132:5: cannot use *"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterVersionList value as type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object in return argument:
*"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterVersionList does not implement "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object (wrong type for DeepCopyObject method)
have DeepCopyObject() "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/runtime".Object
want DeepCopyObject() "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Object
pkg/monitor/operator.go:132:52: cannot use options (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to client.ConfigV1().ClusterVersions().List
pkg/monitor/operator.go:132:5: too many errors
# github.com/openshift/origin/test/extended/scheme
test/extended/scheme/install.go:8:17: cannot use Scheme (type *"github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Scheme) as type *"github.com/openshift/origin/vendor/github.com/openshift/api/vendor/k8s.io/apimachinery/pkg/runtime".Scheme in argument to api.InstallKube
test/extended/scheme/install.go:9:13: cannot use Scheme (type *"github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/runtime".Scheme) as type *"github.com/openshift/origin/vendor/github.com/openshift/api/vendor/k8s.io/apimachinery/pkg/runtime".Scheme in argument to api.Install
# github.com/openshift/origin/test/e2e/upgrade
test/e2e/upgrade/monitor.go:31:83: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions literal (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions) as type "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".GetOptions in argument to m.client.ConfigV1().ClusterVersions().Get
test/e2e/upgrade/monitor.go:37:11: cannot use cv (type *"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterVersion) as type *"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterVersion in assignment
test/e2e/upgrade/monitor.go:40:46: invalid operation: desired != *cv.Spec.DesiredUpdate (mismatched types "github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".Update and "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".Update)
test/e2e/upgrade/monitor.go:51:34: cannot use cv.Status.Conditions (type []"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterOperatorStatusCondition) as type []"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterOperatorStatusCondition in argument to findCondition
test/e2e/upgrade/monitor.go:58:2: cannot use cv (type *"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterVersion) as type *"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterVersion in return argument
test/e2e/upgrade/monitor.go:103:79: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions literal (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to m.client.ConfigV1().ClusterOperators().List
test/e2e/upgrade/monitor.go:111:29: cannot use item.Status.Versions (type []"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".OperandVersion) as type []"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".OperandVersion in argument to findVersion
test/e2e/upgrade/monitor.go:130:82: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions literal (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to m.client.ConfigV1().ClusterOperators().List
test/e2e/upgrade/monitor.go:138:41: cannot use item.Status.Conditions (type []"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterOperatorStatusCondition) as type []"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterOperatorStatusCondition in argument to findConditionShortStatus
test/e2e/upgrade/monitor.go:139:41: cannot use item.Status.Conditions (type []"github.com/openshift/origin/vendor/github.com/openshift/client-go/vendor/github.com/openshift/api/config/v1".ClusterOperatorStatusCondition) as type []"github.com/openshift/origin/vendor/github.com/openshift/api/config/v1".ClusterOperatorStatusCondition in argument to findConditionShortStatus
test/e2e/upgrade/monitor.go:139:41: too many errors
# github.com/openshift/origin/test/extended/dns
test/extended/dns/dns.go:204:53: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".NewDeleteOptions(0) (type *"github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".DeleteOptions) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".DeleteOptions in argument to podClient.Delete
test/extended/dns/dns.go:206:34: cannot use pod (type *"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Pod) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Pod in argument to podClient.Create
test/extended/dns/dns.go:211:81: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".SingleObject("github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ObjectMeta literal) (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to f.ClientSet.CoreV1().Pods(f.Namespace.ObjectMeta.Name).Watch
test/extended/dns/dns.go:217:42: cannot use w (type "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch".Interface) as type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/watch".Interface in argument to "github.com/openshift/origin/vendor/k8s.io/client-go/tools/watch".UntilWithoutRetry:
"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch".Interface does not implement "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/watch".Interface (wrong type for ResultChan method)
have ResultChan() <-chan "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch".Event
want ResultChan() <-chan "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/watch".Event
test/extended/dns/dns.go:222:73: cannot use &"github.com/openshift/origin/vendor/k8s.io/api/core/v1".PodLogOptions literal (type *"github.com/openshift/origin/vendor/k8s.io/api/core/v1".PodLogOptions) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".PodLogOptions in argument to podClient.GetLogs
test/extended/dns/dns.go:302:88: cannot use createServiceSpec("headless", true, "", nil) (type *"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Service) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Service in argument to f.ClientSet.CoreV1().Services(f.Namespace.ObjectMeta.Name).Create
test/extended/dns/dns.go:305:90: cannot use createEndpointSpec("headless") (type *"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Endpoints) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Endpoints in argument to f.ClientSet.CoreV1().Endpoints(f.Namespace.ObjectMeta.Name).Create
test/extended/dns/dns.go:308:88: cannot use createServiceSpec("clusterip", false, "", nil) (type *"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Service) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Service in argument to f.ClientSet.CoreV1().Services(f.Namespace.ObjectMeta.Name).Create
test/extended/dns/dns.go:311:90: cannot use createEndpointSpec("clusterip") (type *"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Endpoints) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Endpoints in argument to f.ClientSet.CoreV1().Endpoints(f.Namespace.ObjectMeta.Name).Create
test/extended/dns/dns.go:314:88: cannot use createServiceSpec("externalname", true, "www.google.com", nil) (type *"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Service) as type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Service in argument to f.ClientSet.CoreV1().Services(f.Namespace.ObjectMeta.Name).Create
test/extended/dns/dns.go:314:88: too many errors
# github.com/openshift/origin/test/extended/machines
test/extended/machines/machines.go:36:34: cannot use cfg (type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/rest".Config) as type *"github.com/openshift/origin/vendor/k8s.io/client-go/rest".Config in argument to "github.com/openshift/origin/vendor/k8s.io/client-go/dynamic".NewForConfig
test/extended/machines/machines.go:41:53: cannot use c.CoreV1().Namespaces() (type "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/kubernetes/typed/core/v1".NamespaceInterface) as type "github.com/openshift/origin/vendor/k8s.io/client-go/kubernetes/typed/core/v1".NamespaceInterface in argument to skipUnlessMachineAPIOperator:
"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/kubernetes/typed/core/v1".NamespaceInterface does not implement "github.com/openshift/origin/vendor/k8s.io/client-go/kubernetes/typed/core/v1".NamespaceInterface (wrong type for Create method)
have Create(*"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Namespace) (*"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/api/core/v1".Namespace, error)
want Create(*"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Namespace) (*"github.com/openshift/origin/vendor/k8s.io/api/core/v1".Namespace, error)
test/extended/machines/machines.go:44:62: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions literal (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to c.CoreV1().Nodes().List
test/extended/machines/scale.go:101:63: cannot use cfg (type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/rest".Config) as type *"github.com/openshift/origin/vendor/k8s.io/client-go/rest".Config in argument to "github.com/openshift/origin/vendor/k8s.io/client-go/discovery".NewDiscoveryClientForConfig
test/extended/machines/scale.go:113:40: cannot use cfg (type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/rest".Config) as type *"github.com/openshift/origin/vendor/k8s.io/client-go/rest".Config in argument to "github.com/openshift/origin/vendor/k8s.io/client-go/scale".NewForConfig
test/extended/machines/scale.go:166:34: cannot use cfg (type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/rest".Config) as type *"github.com/openshift/origin/vendor/k8s.io/client-go/rest".Config in argument to "github.com/openshift/origin/vendor/k8s.io/client-go/dynamic".NewForConfig
test/extended/machines/scale.go:177:62: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions literal (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to c.CoreV1().Nodes().List
test/extended/machines/scale.go:200:33: cannot use c (type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/kubernetes".Clientset) as type *"github.com/openshift/origin/vendor/k8s.io/client-go/kubernetes".Clientset in argument to verifyNodeScalingFunc
test/extended/machines/scale.go:213:63: cannot use "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions literal (type "github.com/openshift/origin/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions) as type "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1".ListOptions in argument to c.CoreV1().Nodes().List
test/extended/machines/workers.go:126:34: cannot use cfg (type *"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/rest".Config) as type *"github.com/openshift/origin/vendor/k8s.io/client-go/rest".Config in argument to "github.com/openshift/origin/vendor/k8s.io/client-go/dynamic".NewForConfig
test/extended/machines/workers.go:126:34: too many errors
# github.com/openshift/origin/test/extended/util/azure
test/extended/util/azure/config_file.go:26:61: cannot use client.CoreV1() (type "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/kubernetes/typed/core/v1".CoreV1Interface) as type "github.com/openshift/origin/vendor/k8s.io/client-go/kubernetes/typed/core/v1".ConfigMapsGetter in argument to cloudProviderConfigFromCluster:
"github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/kubernetes/typed/core/v1".CoreV1Interface does not implement "github.com/openshift/origin/vendor/k8s.io/client-go/kubernetes/typed/core/v1".ConfigMapsGetter (wrong type for ConfigMaps method)
have ConfigMaps(string) "github.com/openshift/origin/vendor/k8s.io/kubernetes/vendor/k8s.io/client-go/kubernetes/typed/core/v1".ConfigMapInterface
want ConfigMaps(string) "github.com/openshift/origin/vendor/k8s.io/client-go/kubernetes/typed/core/v1".ConfigMapInterface
[ERROR] hack/lib/build/binaries.sh:198: `GOOS=${platform%/*} GOARCH=${platform##*/} go install -tags "${OS_GOFLAGS_TAGS-} ${!platform_gotags_envvar:-}" -ldflags="${local_ldflags}" "${goflags[@]:+${goflags[@]}}" -gcflags "${gogcflags}" "${nonstatics[@]}"` exited with status 2.
[ERROR] hack/build-go.sh exited with code 2 after 00h 02m 22s
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment