I have a kustomize overlay that refers to its base in its kustomization file overlays/test/kustomization.yaml
as follows:
resources:
- ../../base
The relevant directory structure is as follows:
<some_path>/base/kustomization.yaml
<some_path>/overlays/test/kustomization.yaml
When I try kubectl kustomize overlays/test
the following error occurs:
err="accumulating resources: accumulation err='accumulating resources from '../../base': '<some_path>/base' must resolve to a file': recursed accumulation of path '/base'
The documentation for resources
says:
Each entry in this list must be a path to a file, or a path (or URL) referring to another kustomization directory,
If I am not mistaken, /<some_path>/base
should be a valid kustomization directory, because /<some_path>/base/kustomization.yaml
exists. So why must the path resolve to a file (not: directory) according to the error message? What am I missing?