I have an application with different versions. The base resource file for each version is slightly different. But the patch which needs to be applied to the base file is same. What should be the best structure to apply the same patch to different base resource and have different output files respectively.
/base1/
/app-v1
/kustomization.yaml
/base2/
/app-v2
/kustomization.yaml
/overlays/
/dev/
/staging/
How should I specify the resource to make the overlay and patch in base kustomization.yaml which are same to v1 and v2 apply to the different base files?
Ideally, use different kustomize build
command for different base but using same patch file.