-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated caduceus with new webhook-schema and new ancla packages
- Loading branch information
1 parent
cbc2cbd
commit 9522dec
Showing
12 changed files
with
1,120 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,10 @@ import ( | |
_ "github.com/goschtalt/goschtalt/pkg/typical" | ||
_ "github.com/goschtalt/yaml-decoder" | ||
_ "github.com/goschtalt/yaml-encoder" | ||
"github.com/xmidt-org/ancla" | ||
Check failure on line 17 in caduceus.go GitHub Actions / ci / Go Unit Tests
Check failure on line 17 in caduceus.go GitHub Actions / ci / Build Go Program
|
||
"github.com/xmidt-org/arrange/arrangehttp" | ||
anclahelper "github.com/xmidt-org/caduceus/internal/anclaHelper" | ||
"github.com/xmidt-org/caduceus/internal/client" | ||
"github.com/xmidt-org/caduceus/internal/handler" | ||
"github.com/xmidt-org/caduceus/internal/metrics" | ||
"github.com/xmidt-org/caduceus/internal/sink" | ||
|
@@ -87,11 +90,13 @@ func Caduceus(arguments []string, run bool) error { | |
goschtalt.UnmarshalFunc[touchstone.Config]("prometheus"), | ||
goschtalt.UnmarshalFunc[sink.Config]("sender"), | ||
goschtalt.UnmarshalFunc[Service]("service"), | ||
goschtalt.UnmarshalFunc[client.HttpClientTimeout]("argusClientTimeout"), | ||
goschtalt.UnmarshalFunc[[]string]("authHeader"), | ||
goschtalt.UnmarshalFunc[bool]("previousVersionSupport"), | ||
goschtalt.UnmarshalFunc[HealthPath]("servers.health.path"), | ||
goschtalt.UnmarshalFunc[MetricsPath]("servers.metrics.path"), | ||
goschtalt.UnmarshalFunc[PprofPathPrefix]("servers.pprof.path"), | ||
goschtalt.UnmarshalFunc[ancla.Config]("webhook"), | ||
fx.Annotated{ | ||
Name: "server", | ||
Target: goschtalt.UnmarshalFunc[string]("server"), | ||
|
@@ -151,10 +156,12 @@ func Caduceus(arguments []string, run bool) error { | |
touchstone.Provide(), | ||
touchhttp.Provide(), | ||
metrics.Provide(), | ||
// ancla.ProvideMetrics(), //TODO: need to add back in once we fix the ancla/argus dependency issue | ||
client.Provide(), | ||
ancla.ProvideMetrics(), | ||
|
||
fx.Invoke( | ||
lifeCycle, | ||
anclahelper.InitializeAncla, | ||
), | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.