I see bases is deprecated. What is the replacement?
If I understand correctly, resources can be used to point to a directory containing a kustomization.yaml for these purposes.
@chancez correct -- you can specify bases as resources
https://github.com/kubernetes-sigs/kustomize/issues/776#issuecomment-461459130 demonstrates they have some notable differences. Bases seems to be the better option for what I'm trying to do and several other uses I've seen.
Update: I guess this is only an issue in the version of kustomize shipped with kubectl 1.18.
But if you define bases with resources it requires the base to be "in or below" which is a bad idea if you wont dublicate base per env. How am I supposed to put base within dev or prod?
MyRepo
├───base
│ ├───db
│ ├───frontend
│ ├───service1
│ ├───service2
└───env
│ ├───dev
│ ├───prod
Can someone please confirm if this is/will be fixed by 1.19?
@coderatchet Added an explanation on this ticket (as far as i can work it out) https://github.com/kubernetes/kubectl/issues/891#issuecomment-731238572
Most helpful comment
But if you define bases with resources it requires the base to be "in or below" which is a bad idea if you wont dublicate base per env. How am I supposed to put base within dev or prod?
MyRepo
├───base
│ ├───db
│ ├───frontend
│ ├───service1
│ ├───service2
└───env
│ ├───dev
│ ├───prod