-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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(appset): add SCM-Manager to Pull Request and SCM Provider Generators #14332
base: master
Are you sure you want to change the base?
feat(appset): add SCM-Manager to Pull Request and SCM Provider Generators #14332
Conversation
6910010
to
77aa1ff
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14332 +/- ##
==========================================
+ Coverage 55.16% 55.19% +0.03%
==========================================
Files 337 339 +2
Lines 57039 57289 +250
==========================================
+ Hits 31464 31620 +156
- Misses 22874 22946 +72
- Partials 2701 2723 +22 ☔ View full report in Codecov by Sentry. |
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 @eheimbuch for the PR!! A couple nits and a general question.
Should we also provide the ability for the user to configure a cert bundle on the appset controller so that users don't have to disable cert validation similar to Gitlab SCMProvider?
Hi @ishitasequeira !
We would skip this feature from our side for now and would be very greatful to see this first step going live. Thanks for your review, we highly appreciate this. |
Hi @ishitasequeira, we fixed your review some time ago and still waiting for your feedback / pr merge. We have more integrations for SCM Manager with ArgoCD in our pipeline, but are hesitant due to the status of this pull request. |
8d381ad
to
2ea0341
Compare
Bump @ishitasequeira |
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.
@eheimbuch @pfeuffer Apologies for lack of response on this PR and getting back to you so late.
IMO, disabling the cert validation is a security risk and we should support that feature from the start. It would be highly appreciated if you could get the support added for cert validation. We do have a reference available for similar use-case. Ref PR: #14348
Hi @ishitasequeira , thanks for the feedback. We will add this and report back when we're finished. |
9d576ed
to
01b684f
Compare
6f047d3
to
a182c30
Compare
14e8829
to
59bd2e6
Compare
Hey @ishitasequeira , thanks for the patience! We've added the cert validation and it would be great if you could take a look again. |
88df022
to
f194b97
Compare
Signed-off-by: Till-André Diegeler <[email protected]>
f194b97
to
2941102
Compare
Signed-off-by: Till-André Diegeler <[email protected]>
Signed-off-by: Till-André Diegeler <[email protected]>
3c5a762
to
1dca723
Compare
Signed-off-by: Till-André Diegeler <[email protected]>
Signed-off-by: René Pfeuffer <[email protected]>
Signed-off-by: René Pfeuffer <[email protected]>
Signed-off-by: René Pfeuffer <[email protected]>
Signed-off-by: René Pfeuffer <[email protected]>
Signed-off-by: René Pfeuffer <[email protected]>
Signed-off-by: René Pfeuffer <[email protected]>
0eadd5d
to
ad51074
Compare
Signed-off-by: René Pfeuffer <[email protected]>
Signed-off-by: René Pfeuffer <[email protected]>
cc6e582
to
2dd4620
Compare
Signed-off-by: René Pfeuffer <[email protected]>
164b98d
to
b003349
Compare
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.
Add some minor questions / points
func (g *ScmManagerProvider) ListRepos(ctx context.Context, cloneProtocol string) ([]*Repository, error) { | ||
repos := []*Repository{} | ||
filter := g.client.NewRepoListFilter() | ||
filter.Limit = 9999 |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@@ -323,6 +357,13 @@ var azuredevopsAllowedPullRequestActions = []string{ | |||
"git.pullrequest.updated", | |||
} | |||
|
|||
var scmManagerAllowedPullRequestActions = []string{ |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
applicationset/webhook/webhook.go
Outdated
} | ||
infoUrl, err := url.Parse(info.SCMManager.Host) | ||
if err != nil { | ||
log.Errorf("Failed to parse SCM-Manager URL '%s'", info.SCMManager.Host) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
docs/assets/scm-webhook-config.png
Outdated
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@@ -234,6 +244,7 @@ func TestWebhookHandler(t *testing.T) { | |||
assert.Equal(t, test.expectedStatusCode, w.Code) | |||
|
|||
list := &v1alpha1.ApplicationSetList{} | |||
fmt.Printf("List: %v\n", list) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
assert.True(t, ok) | ||
}) | ||
|
||
t.Run("does not exists", func(t *testing.T) { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Signed-off-by: Till-André Diegeler <[email protected]>
Hi @ishitasequeira , thank you for having taken a look at our PR over a year ago. It has been a long time and the matter was postponed on our side until a few months ago. We were putting a lot of effort into reaching a stable state for our solution and were also tackling the remaining steps on the native Argo-CD side. The solution is now able to be merged with the most recent states; if a merge conflict still occurs, it may be due to a recent (minor) divergence. Is this state acceptable, so that it can be officially taken as an addition to the Argo-CD project? Thank you! |
Signed-off-by: René Pfeuffer <[email protected]>
207ce7b
to
2915145
Compare
Bump @ishitasequeira |
Bump @ishitasequeira 👋 This is from an argoproj PR. |
This PR implements the functionality of Pull Request Generator for SCM-Manager Repos. Also we added SCM-Manager to be available as SCM Provider.
Checklist:
Please see Contribution FAQs if you have questions about your pull-request.