-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: configurable CMP tar exclusions (#9675) #9789
fix: configurable CMP tar exclusions (#9675) #9789
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>
@@ -872,7 +873,8 @@ func getRepoCredential(repoCredentials []*v1alpha1.RepoCreds, repoURL string) *v | |||
|
|||
type GenerateManifestOpt func(*generateManifestOpt) | |||
type generateManifestOpt struct { | |||
cmpTarDoneCh chan<- bool | |||
cmpTarDoneCh chan<- bool | |||
cmpTarExcludedGlobs []string |
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.
@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.
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.
@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.
@@ -37,6 +37,7 @@ Currently, the following organizations are **officially** using Argo CD: | |||
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/) |
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.
❤️
* 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
.git
folder 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: