Tf-operator: Could not introduce k8s.io/kube-openapi@master

Created on 16 Jun 2020  路  7Comments  路  Source: kubeflow/tf-operator

How to reproduce?

cd ${GOPATH}/src/github.com/kubeflow
git clone [email protected]:kubeflow/tf-operator.git
dep ensure

Error message

Solving failure: Could not introduce k8s.io/kube-openapi@master, as it requires package k8s.io/klog/v2 from k8s.io/klog, but in version v2.2.0 that package is missing.

I've done with https://github.com/kubeflow/tf-operator/issues/1170, but I can't generate openapi_generated.go

$ ./hack/update-codegen.sh

# output
enerating deepcopy funcs
Generating clientset for tensorflow:v1 at github.com/kubeflow/tf-operator/pkg/client/clientset
Generating listers for tensorflow:v1 at github.com/kubeflow/tf-operator/pkg/client/listers
Generating informers for tensorflow:v1 at github.com/kubeflow/tf-operator/pkg/client/informers
Generating defaulters for tensorflow/v1
Generating OpenAPI specification for tensorflow/v1
./hack/update-codegen.sh: line 45: /home/dslab/go/bin/openapi-gen: No such file or director
kinbug areoperator lifecyclstale

Most helpful comment

Maybe we can use go mod instead soon. Maybe after #1171

All 7 comments

Issue-Label Bot is automatically applying the labels:

| Label | Probability |
| ------------- | ------------- |
| area/operator | 0.53 |
| kind/bug | 0.83 |

Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.

Maybe we can use go mod instead soon. Maybe after #1171

@pingsutw
We have already migrated to go mod, you can refer to this PR https://github.com/kubeflow/tf-operator/pull/1144.
So instead of using dep ensure, you have to use go mod download to download the dependencies.

@gaocegege I think we have to update the developer_guide.md to reflect the change

@ChanYiLin Thanks, I will update my PR ASAP.

BTW, for the openapi_generated, you have to install openapi-gen (from https://github.com/kubernetes/kube-openapi) first like defaulter-gen in your {GO_PATH}/bin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

/close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jeffwan picture Jeffwan  路  6Comments

jlewi picture jlewi  路  10Comments

andreyvelich picture andreyvelich  路  9Comments

Jeffwan picture Jeffwan  路  10Comments

chaoleili picture chaoleili  路  8Comments