-
Notifications
You must be signed in to change notification settings - Fork 124
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
Detect-files Recursion #444
Comments
detect-files is using Line 91 in 4c80d3a
|
Actually, I can't seem to reproduce this. here's Pluto finding something several directories deep, with other yaml files above it.
|
I managed to briefly recreate your recursion when using your CLI flags without Unless |
If you could provide an exact structure to reproduce the bug, we can look into it. |
The documentation is not clear on the recursion behaviour of
pluto detect-files -d .
I've traced it like so on mac:
sudo dtruss -f -t open pluto detect-files -d .
and found that it seems to recurse 2 directory levels, but if there are yamls one subdirectory level down.
If you start at the top of a repo root and there are no yamls within 1 sub-level due to directory structures like
app/base/*.yaml
then pluto is not opening any yaml files and silently failing to scan.Describe the solution you'd like
pluto detect-files -d .
should recurse all subdirectory levels to find yamls in kubernetes repo treesDescribe alternatives you've considered
Shell script recursing all directories and running
pluto detect-files -d .
at each level.https://github.com/HariSekhon/DevOps-Bash-tools/blob/master/kubernetes/pluto_detect_kustomize_materialize.sh
Additional Context
I'm trying to find deprecated API objects affecting my Kubernetes cluster upgrade that are inherited from Helm charts embedded in
kustomization.yaml
which are not currently detectable by Nova because the helm charts are not installed directy, and are not detectable bypluto
unless I materialize thekustomization.yaml
, as I do with this script:https://github.com/HariSekhon/DevOps-Bash-tools/blob/master/kubernetes/kustomize_materialize.sh
When I run
pluto detect-files -d .
on the resultant directory tree full ofkustomization.materialized.yaml
files, it fails to open and test any yamls unless I runpluto
in each directory level.I've worked around it for now using this script:
https://github.com/HariSekhon/DevOps-Bash-tools/blob/master/kubernetes/pluto_detect_kustomize_materialize.sh
Somewhat related to #431
Pluto version
The text was updated successfully, but these errors were encountered: