Skip to content

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

Closed
@cmoulliard

Description

@cmoulliard

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/supportIndicates an issue that is a support question.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions