-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Kubebuilder v3.0.0 fails without a present "Dockerfile" #2165
Comments
The edit command modifies the Dockerfile to use the right API path, so that error is expected. |
Sorry I may not have communicated the point as well as I had hoped to: The $ kubebuilder edit --help
This command will edit the project configuration.
Features supported:
- Toggle between single or multi group projects. So if it's really intended to do more, shouldn't that intended behavior around |
Hi @shaneutt, The CLI tool will look for the files in the specific places that have no way for that discovery where is the place that you move out the Dockerfile. Note that the edit command will edit the default Dockerfile scaffolded to change it accordingly to the multi-group support layout. Please see the note: https://book.kubebuilder.io/migration/v2vsv3.html#project-customizations And then, please let us know if it answers your question and if we can close this one. |
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
It's not fixed, but at least from my perspective it's no longer an issue because of how we've changed the structure of several of our repositories. I have no personal follow-up, but if someone else feels strongly they can re-open. |
What broke? What's expected?
In our repository we've moved the
Dockerfile
out of the directory and the build happens elsewhere, but thekubebuilder
CLI does not tolerate this, failing with:Furthermore if the file does exist it checks for a very specific line:
I would expect the CLI by default to be able to tolerate the lack of
Dockerfile
present, and allow the end user to manually manage the file.Reproducing this issue
These commands reproduce the problem:
KubeBuilder (CLI) Version
Version: main.version{KubeBuilderVersion:"3.0.0", KubernetesVendor:"1.19.2", GitCommit:"533874b302e9bf94cd7105831f8a543458752973", BuildDate:"2021-04-28T16:23:59Z", GoOs:"linux", GoArch:"amd64"}
PROJECT version
version: "3"
Plugin versions
Other versions
Extra Labels
No response
The text was updated successfully, but these errors were encountered: