-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add CLI flag to ignore hidden directories and/or support .gitignore #211
Comments
@ahgraber You can can specify --path to point to a specific subdirectory that contains your cluster repo e.g. --path=kubernetes/ or --path=clusters/prod etc |
@ahgraber i believe using --path addresses your issue. Is that right? |
Mostly! If I want to do a full build of the entire repo (locally), then having a way to exclude multiple patterns would be really useful. However, I probably don't need to do that locally, in which case Thanks for following up! I'll close this. |
I believe this would be useful. For example my cluster is not in a subfolder, and the tool picks up
I think having a |
I found out there is a |
Unfortunately it does not alleviate the issue:
|
@jkoelker I see -- in this case it looks like its I don't think flux-local can have another way to tell I think i'd need to see more about the details of the repo to figure out a path forward for you. |
I think the deal is by default the flux controller never sees them as they are excluded from the Artifact by the source controller The repository was created with |
T |
Thanks for that detail. Yeah, |
One thing that may be hard to automatically do is that we may not have a way to identify the right GitRepository that points to "this cluster" though maybe --sources can pick it up. |
I have "work in progress"
.wip/
directories in my local repo that are included in my .gitignore. As these are work in progress, they may be in a state that causeflux-local
to crash.It would be really useful to be able to set flux-local (and the gh Action) to ignore directories that:
The text was updated successfully, but these errors were encountered: