fix: configurable CMP tar exclusions (#9675)#9789
fix: configurable CMP tar exclusions (#9675)#9789crenshaw-dev merged 7 commits intoargoproj:masterfrom
Conversation
ebb73cf to
122829e
Compare
Codecov Report
@@ Coverage Diff @@
## master #9789 +/- ##
==========================================
- Coverage 45.79% 45.78% -0.01%
==========================================
Files 227 227
Lines 26920 26924 +4
==========================================
+ Hits 12327 12328 +1
- Misses 12911 12914 +3
Partials 1682 1682
Continue to review full report at Codecov.
|
122829e to
1939790
Compare
|
Going to work on this PR a little bit more - need to figure out how to add the environment variables. |
b59bb8f to
57eed89
Compare
|
Figured out how to add the environment variables! It's a little weird compared to the other ones since it's an array. I had to make a way to separate it when using environment variables versus the repeatable flag. Perhaps I should just use the same logic in the flag and make it non-repeatable. But, all ready and tested locally! I was able to selectively filter out any combination of files and folders. |
293f080 to
62c0fe5
Compare
|
Had to fix some small documentation issues for checks to pass. Tested in our real dev clusters. All working. 🎉 |
9c31b17 to
d11ee1c
Compare
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com>
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com>
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com>
d11ee1c to
7aa5135
Compare
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com>
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com>
Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com>
| type generateManifestOpt struct { | ||
| cmpTarDoneCh chan<- bool | ||
| cmpTarDoneCh chan<- bool | ||
| cmpTarExcludedGlobs []string |
There was a problem hiding this comment.
@leoluz is this type designed to carry the generate params so we can keep that function signature small? If so, 1) @notfromstatefarm went the right direction here and 2) I should probably refactor to put some other things on this struct.
If that's incorrect, we can refactor to pass this param directly to the function.
crenshaw-dev
left a comment
There was a problem hiding this comment.
@notfromstatefarm lgtm! I have one question for Leo. Once he responds, I expect to be able to merge.
Might be a few days before we get the release out with this fix.
| 1. [Chargetrip](https://chargetrip.com) | ||
| 1. [Chime](https://www.chime.com) | ||
| 1. [Cisco ET&I](https://eti.cisco.com/) | ||
| 1. [Cobalt](https://www.cobalt.io/) |
* feat: configurable CMP tar exclusions Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com> * rename cmp to plugin Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com> * add test for tar stream exclusions Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com> * fix tests Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com> * update cmp guide Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com> * fully parameterize Signed-off-by: notfromstatefarm <86763948+notfromstatefarm@users.noreply.github.com>
|
Cherry-picked onto release-2.4 for 2.4.4. |
Signed-off-by: notfromstatefarm 86763948+notfromstatefarm@users.noreply.github.com
Fixes #9675
Recently, a breaking change was implemented where the
.gitfolder will not be transmitted to CMP sidecars. @crenshaw-dev suggested making this configurable. This PR sets out to do that via the repo server arguments.This is my first PR, so apologies if I missed anything!
Checklist: