Skip to content

Commit

Permalink
Egoscale v3: Fix the exoscale trace output
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <[email protected]>
  • Loading branch information
pierre-emmanuelJ committed Apr 11, 2024
1 parent ed306e3 commit ee87626
Show file tree
Hide file tree
Showing 8 changed files with 1,732 additions and 1,011 deletions.
8 changes: 7 additions & 1 deletion cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ func buildClient() {

clientV3, err := v3.NewClient(
creds,
v3.ClientOptWithHTTPClient(httpClient),
v3.ClientOptWithRequestInterceptors(func(ctx context.Context, req *http.Request) error {
for k, v := range account.CurrentAccount.CustomHeaders {
req.Header.Add(k, v)
}

return nil
}),
)
if err != nil {
panic(fmt.Sprintf("unable to initialize Exoscale API V3 client: %v", err))
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/s3 v1.2.0
github.com/aws/smithy-go v1.1.0
github.com/dustin/go-humanize v1.0.1
github.com/exoscale/egoscale v0.102.4-0.20240223092311-76285ea0504f
github.com/exoscale/egoscale v0.102.4-0.20240411151757-e59fc2d046ea
github.com/exoscale/openapi-cli-generator v1.1.0
github.com/fatih/camelcase v1.0.0
github.com/google/uuid v1.4.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.
github.com/envoyproxy/go-control-plane v0.10.1/go.mod h1:AY7fTTXNdv/aJ2O5jwpxAPOWUZ7hQAEvzN5Pf27BkQQ=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws=
github.com/exoscale/egoscale v0.102.4-0.20240223092311-76285ea0504f h1:Ivacu1126KBSLhXvXST6H0ftMjehMV637fL/nb222LM=
github.com/exoscale/egoscale v0.102.4-0.20240223092311-76285ea0504f/go.mod h1:sFBCvHJx/h6u8Z5igoIcgbPs+wltBbEJrXA2xp05KoU=
github.com/exoscale/egoscale v0.102.4-0.20240411151757-e59fc2d046ea h1:4aA5D9bWRWtXiknjBWqoCgnwI9+KCFDCInrCx8AigV8=
github.com/exoscale/egoscale v0.102.4-0.20240411151757-e59fc2d046ea/go.mod h1:sFBCvHJx/h6u8Z5igoIcgbPs+wltBbEJrXA2xp05KoU=
github.com/exoscale/openapi-cli-generator v1.1.0 h1:fYjmPqHR5vxlOBrbvde7eo7bISNQIFxsGn4A5/acwKA=
github.com/exoscale/openapi-cli-generator v1.1.0/go.mod h1:TZBnbT7f3hJ5ImyUphJwRM+X5xF/zCQZ6o8a42gQeTs=
github.com/fatih/camelcase v1.0.0 h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8=
Expand Down
43 changes: 42 additions & 1 deletion vendor/github.com/exoscale/egoscale/v2/sks_nodepool.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/exoscale/egoscale/v3/api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ee87626

Please sign in to comment.