Is it possible to use Kubebuilder with custom Dockerfile in root directory? #2703
-
I need to add a new CRD as per new requirements but when I try:
Then I get this error:
I have a need for using a custom Dockerfile in the project root but want to continue using Kubebuilder. Also worth mentioning might be that the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I think the problem is |
Beta Was this translation helpful? Give feedback.
-
Multi-group is supported by go/v2. The problem here is that you update the Dockerfile and when we are trying to do the changes on the scaffolds we will look for "COPY api/ api/" and it is not found. Therefore, yes you can change the scaffold as please you. I'd not recommend you to do it unless you need it and you know what you are doing because if you deviate too much from the scaffold proposed then some actions can no longer work and you will make the process to upgrade your project very complex. Therefore, you might be impacted and you will no longer be able to take advantage of helpers/plugins and etc that can be provided. See: From: https://book.kubebuilder.io/migration/v2vsv3.html#project-customizations IMPORTANT: I would like to encourage you to move forward and migrate your project since you are using go/v2. See:
From: https://github.com/kubernetes-sigs/kubebuilder/releases/tag/v3.5.0 |
Beta Was this translation helpful? Give feedback.
-
Closing since it is answered. |
Beta Was this translation helpful? Give feedback.
@nyrareddy,
Multi-group is supported by go/v2. The problem here is that you update the Dockerfile and when we are trying to do the changes on the scaffolds we will look for "COPY api/ api/" and it is not found.
Therefore, yes you can change the scaffold as please you. I'd not recommend you to do it unless you need it and you know what you are doing because if you deviate too much from the scaffold proposed then some actions can no longer work and you will make the process to upgrade your project very complex. Therefore, you might be impacted and you will no longer be able to take advantage of helpers/plugins and etc that can be provided.
See:
From: https://book.kubebuilder.io/migration/v…