Skip to content
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

Fix path of generated openAPI #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shunpoco
Copy link

Thank you for your fabulous hands-on!

What

Fix the path of generated openAPI code in ./hack/openapi.sh.

Problem

When I tried to execute make openapi, I caught an error:

$ make openapi
./hack/openapi.sh
make[1]: Entering directory '<my_path>/mini-kube-scheduler/submodules/kubernetes'
make[2]: Entering directory '<my_path>/mini-kube-scheduler/submodules/kubernetes'
<...omit...>
make[1]: Leaving directory '<my_path>/mini-kube-scheduler/submodules/kubernetes'
cp: cannot create regular file '../k8sapiserver/openapi/zz_generated.openapi.go': No such file or directory
make: *** [Makefile:16: openapi] Error 1

We should specify ../../k8sapiserver/openapi/zz_... instead of ../k8sapiserver/openapi/zz_... because in openapi.sh, the working directory is changed to ./submodules/kubernetes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant