This works since Kustomize supports fetching the root kustomization.yaml file from a git repo at a specific path and ref. However, the file MUST be named "kustomization.yaml" (or similar) or else I get this error:
error: accumulating resources: accumulation err='accumulating resources from '../base': '/Users/mac/code/helm/trident/base' must resolve to a file': recursed accumulation of path '/Users/mac/code/helm/trident/base': accumulating resources: accumulation err='accumulating resources from 'https://github.com/NetApp/trident/deploy?ref=v23.04.0': URL is a git repository': couldn't make target for path '/private/var/folders/qm/l_8rstwn383gwzx2lttl7ll00000gp/T/kustomize-207885862/deploy': unable to find one of 'kustomization.yaml', 'kustomization.yml' or 'Kustomization' in directory '/private/var/folders/qm/l_8rstwn383gwzx2lttl7ll00000gp/T/kustomize-207885862/deploy'
This is because after v23, the kustomization.yaml file was split into kustomization_post_1_25.yaml and kustomization_pre_1_25.yaml, so kustomize doesn't recognize it anymore.
Environment
Trident version: v23.04.0
Expected behavior
If I fork this repo and rename "kustomization_post_1_25.yaml" back to kustomization.yaml, then it works: kustomize recognizes the file, pulls in all the manifests from this repo, and overlays my local changes.
Describe the bug I install Trident using Kustomize by creating a kustomization.yaml file like this:
This works since Kustomize supports fetching the root kustomization.yaml file from a git repo at a specific path and ref. However, the file MUST be named "kustomization.yaml" (or similar) or else I get this error:
This is because after v23, the kustomization.yaml file was split into kustomization_post_1_25.yaml and kustomization_pre_1_25.yaml, so kustomize doesn't recognize it anymore.
Environment
Expected behavior
If I fork this repo and rename "kustomization_post_1_25.yaml" back to
kustomization.yaml
, then it works: kustomize recognizes the file, pulls in all the manifests from this repo, and overlays my local changes.