-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubectl kustomize errored: error: specify one path to kustomization.yaml #8
Comments
Hi @prestonvanloon :) Is there a reason you're using a glob for this? When using Datree to run a policy check against a Kustomization, all you need to provide is the path to the dir containing the "kustomization.yaml" file. In your case - if, for example, that file is in the dir 'cluster/default/' then that is what you should pass to the Let me know if that helps:) |
Hi @prestonvanloon, Have you had a chance to see if this resolves your issue?:) |
Hey @hadar-co, the issue seems to be we have nested kustomized directories. We are using Gitops with Kustomized, the structure consists of the a root kustomized directory and component's kuztomized. We specify each parent directory in parent kustomized.yaml and the files for particular component in component's root kustomized.yaml. This is an example of our repository structure https://github.com/fluxcd/flux2-kustomize-helm-example/tree/main/infrastructure |
Hi @Taranpreet26311, this is the structure that the CLI expects, so in order to test the example you wrote here, you would set the |
Hey @hadar-co this seems to have fixed the issue. Thanks for the assistance! |
Glad to hear, No problem:) |
It passes when using commit 460c784
The text was updated successfully, but these errors were encountered: