-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: merge ArgoCD and AppSet webhooks endpoints into single entry point. #23081
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
base: master
Are you sure you want to change the base?
feat: merge ArgoCD and AppSet webhooks endpoints into single entry point. #23081
Conversation
❌ Preview Environment undeployed from BunnyshellAvailable commands (reply to this comment):
|
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.
I'd like to know a couple of things here:
- What's the motivation for this change? Is there an existing issue already? If no, please create an issue first before working on it.
- I see you've removed the debug logs from the code. Why is that necessary?
server/server.go
Outdated
| mgr, err := ctrl.NewManager(cfg, ctrl.Options{ | ||
| Scheme: scheme, | ||
| Metrics: metricsserver.Options{ | ||
| BindAddress: server.ApplicationSetOpts.MetricsAddr, | ||
| }, | ||
| Cache: cacheOpt, | ||
| HealthProbeBindAddress: server.ApplicationSetOpts.ProbeBindAddr, | ||
| LeaderElection: server.ApplicationSetOpts.EnableLeaderElection, | ||
| LeaderElectionID: "58ac56fa.applicationsets.argoproj.io", | ||
| Client: ctrlclient.Options{ | ||
| DryRun: &server.ApplicationSetOpts.DryRun, | ||
| }, | ||
| }) | ||
| if err != nil { | ||
| log.Error(err, "unable to start manager") | ||
| os.Exit(1) | ||
| } | ||
| dynamicClient, err := dynamic.NewForConfig(mgr.GetConfig()) |
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.
I wonder if the two-step of building a manager and then constructing a client from the manager's config can be avoided. That would allow us to eliminate a ton of config dependencies.
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.
hm Im not sure but I can double check. I tried to use as minimum as possible but Ill double check 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.
@crenshaw-dev from what I can see we probably can drop. manager and client is using by next generators:
- Clusters
- ClusterDecisionResource
- Plugin
which shouldn't be a case when we are talking aboutwebhookbut I could be wrong.
hey @nitishfy. sorry for the late response.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #23081 +/- ##
==========================================
+ Coverage 60.05% 60.10% +0.05%
==========================================
Files 342 344 +2
Lines 58820 58909 +89
==========================================
+ Hits 35325 35409 +84
- Misses 20635 20642 +7
+ Partials 2860 2858 -2 ☔ View full report in Codecov by Sentry. |
4ef7153 to
8780da6
Compare
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: Grischa Ekart <[email protected]> Signed-off-by: Dan Garfield <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Co-authored-by: Dan Garfield <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: dsuhinin <[email protected]>
…oproj#22936) Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
) Signed-off-by: rumstead <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Atif Ali <[email protected]> Signed-off-by: dsuhinin <[email protected]>
…oproj#22734) Signed-off-by: nitishfy <[email protected]> Signed-off-by: dsuhinin <[email protected]>
…j#22965) Signed-off-by: oleksandr-codefresh <[email protected]> Co-authored-by: Regina Voloshin <[email protected]> Signed-off-by: dsuhinin <[email protected]>
…/remote (argoproj#22985) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: dsuhinin <[email protected]>
…st (argoproj#22986) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: dsuhinin <[email protected]>
…rgoproj#22987) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: dsuhinin <[email protected]>
…roj#22988) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: dsuhinin <[email protected]>
…goproj#22989) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Karsten Thoms <[email protected]> Co-authored-by: Dan Garfield <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Boxuan Tang <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]> Co-authored-by: Alexandre Gaudreault <[email protected]> Signed-off-by: dsuhinin <[email protected]>
…om 1.9.0 to 1.10.0 (argoproj#22990) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: dsuhinin <[email protected]>
…oproj#22813) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: dsuhinin <[email protected]>
…oj#23383) Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Francis Provencher <[email protected]> Signed-off-by: dsuhinin <[email protected]>
argoproj#20785, argoproj#18478) (argoproj#22713) Signed-off-by: Hazel Sudzilouski <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]> Co-authored-by: Alexandre Gaudreault <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Peter Jiang <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Christian Hernandez <[email protected]> Co-authored-by: Blake Pettersson <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
…rgoproj#23389) Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
…lingSync (argoproj#20428) (argoproj#23335) Signed-off-by: Mike Ng <[email protected]> Signed-off-by: Alexandre Gaudreault <[email protected]> Co-authored-by: Alexandre Gaudreault <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Peter Jiang <[email protected]> Signed-off-by: Peter Jiang <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Jennifer Weir <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: CI <[email protected]> Co-authored-by: CI <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]> Signed-off-by: dsuhinin <[email protected]>
…#23401) Signed-off-by: Matthieu MOREL <[email protected]> Signed-off-by: dsuhinin <[email protected]>
Signed-off-by: Matthieu MOREL <[email protected]> Signed-off-by: dsuhinin <[email protected]>
67d8546 to
70e2825
Compare
…ebhooks Signed-off-by: Software Developer <[email protected]>
Merge ArgoCD and AppSet webhooks endpoints into single entry point.
Checklist: