kubebuilder init creates structure incompatible with kustomize #654
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
When running
kubebuilder init
, a project structure is created which places the kustomization.yaml file in the 'config/default' folder which refers to other yaml files in 'config/rbac' and 'config/manager'. This is now a problem because in kustomize v2, kustomization.yaml can only refer to files in the same directory or in subdirectories (see more details here).This problem cropped up when working through the tutorial and running the following command:
make deploy
. This resulted in the following error:I temporarily resolved it by moving 'config/rbac' and 'config/manager' to 'config/default' and changing the paths in kustomization.yaml to refer to the new location (e.g.
./rbac/rbac_role.yaml
instead of../rbac/rbac_role.yaml
).The text was updated successfully, but these errors were encountered: