-
Notifications
You must be signed in to change notification settings - Fork 6.1k
feat: add ability to exclude files when using git file generator #22734
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
feat: add ability to exclude files when using git file generator #22734
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22734 +/- ##
=========================================
Coverage ? 60.01%
=========================================
Files ? 343
Lines ? 57826
Branches ? 0
=========================================
Hits ? 34705
Misses ? 20351
Partials ? 2770 ☔ View full report in Codecov by Sentry. |
0eacf01
to
c084da2
Compare
These changes made sense to me when I read through them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
based on the contributor meeting we should respect the globbing function passed in by the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR is completely ready for review (possibly merge too). Here are the things I've done after the last feedbac:
Please let me know if you've any questions. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nitishfy I assume a change to an ignored file will still trigger a rebuild of the application set so it can check what changed etc. I don't think that's a big issue in most scenarios.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only thing making me nervous in all these PRs are the new comments on unchanged functions. I feel like they need to be double checked or removed. Did you go through and write them all?
How is that related to the change? Would you mind providing details about it?
Yep! I did go through them all. Those are mere refactoring stuff and we can ignore if we would want to but I read those function definitions and created a short docs. I did this before too. |
I went through the comments again. Those seem to be correct as I was playing with those functions while trying to understand codebase. So I don't think we'd be required to remove those function comments anymore. |
888f97f
to
f1bd41c
Compare
Signed-off-by: Nitish Kumar <nitishkumar@192.168.1.8> Signed-off-by: nitishfy <justnitish06@gmail.com>
f1bd41c
to
266b523
Compare
Signed-off-by: nitishfy <justnitish06@gmail.com>
ef0805f
to
695b6b1
Compare
LGTM - there have been many great comments on the PR, and i don't want to merge before folks get a second to chime in. @crenshaw-dev, @todaywasawesome, @agaudreault any final feedback? |
@nitishfy I think this generally looks good! I don't know if anyone else would agree, but perhaps instead of adding a new field to the CRD, we'd instead make use of negation, i.e any exclusion would be prefixed with an This is how this has been done elsewhere in the codebase, and IMO could make for a more consistent and intuitive experience. What do y'all think? |
This is another approach to do the same behaviour. Rn, we are trying to make it consistent with how the git directory generator generall works - it has the |
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com> Signed-off-by: Lyheng <lyhengtep@gmail.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com> Signed-off-by: Kanika Rana <krana@redhat.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com> Signed-off-by: Oliver Gondža <ogondza@gmail.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
…oproj#22734) Signed-off-by: nitishfy <justnitish06@gmail.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
Closes #13690
After
Checklist: