-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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: ensure appset git generator works with private repo #9179
fix: ensure appset git generator works with private repo #9179
Conversation
Signed-off-by: rishabh625 <rishabhmishra625@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #9179 +/- ##
==========================================
+ Coverage 45.49% 45.79% +0.30%
==========================================
Files 219 220 +1
Lines 25870 25865 -5
==========================================
+ Hits 11770 11846 +76
+ Misses 12462 12373 -89
- Partials 1638 1646 +8
Continue to review full report at Codecov.
|
The readonly root problem should be fixed by this: #9183 |
thanks |
Fixes:- 8967 |
e209122
to
88d37b2
Compare
Signed-off-by: rishabh625 <rishabhmishra625@gmail.com>
88d37b2
to
0fe622b
Compare
@jannfis @ishitasequeira @chetan-rns @crenshaw-dev : can u please review? I havemerged this PR branch too as checks were failing |
@@ -141,6 +141,9 @@ func getBranches(ctx context.Context, provider SCMProviderService, repos []*Repo | |||
for _, repo := range repos { | |||
reposFilled, err := provider.GetBranches(ctx, repo) | |||
if err != nil { | |||
if checkBranchDoNotExist(err.Error()) { |
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.
Do we need to check this in the current PR? I saw another PR for it
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.
For this changes please comment here
I merged branch just to get CI pass
72b2de1
to
0fe622b
Compare
please review this |
Signed-off-by: rishabh625 <rishabhmishra625@gmail.com>
0739e5e
to
ff73a31
Compare
@@ -131,6 +132,7 @@ func NewCommand() *cobra.Command { | |||
startWebhookServer(webhookHandler, webhookAddr) | |||
} | |||
askPassServer := askpass.NewServer() | |||
go func() { errors.CheckError(askPassServer.Run(askpass.SocketPath)) }() |
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 PR looks good to me. Since askPassServer.Run(path string)
accepts path as an argument. Wouldn't it be easy to pass different paths for both repo server and applicationset? Currently, the path would be /tmp/reposerver-ask-pass.sock
for the applicationset unless explicitly changed by an env variable. Just thinking out loud...
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.
Thanks for the explanation @rishabh625. It makes sense now. Without an env/flag, the path will be fixed when the argocd-git-ask-pass
command will be invoked.
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.
LGTM. Thanks @rishabh625 !
Signed-off-by: rishabh625 rishabhmishra625@gmail.com
Note on DCO:
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.
Checklist:
Fixes:- #8967