Skip to content

Commit

Permalink
temp fix an issue in workflows where metrics scraping fails due to tl…
Browse files Browse the repository at this point in the history
…s verify (#6223)
  • Loading branch information
dejanzele authored Mar 6, 2025
1 parent 6bd3d52 commit 644e410
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/testworkflow-toolkit/env/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ func CloudInternal() cloud.TestKubeCloudAPIClient {
if cloudClient == nil {
cfg := config2.Config().Worker.Connection
logger := log.NewSilent()
// TODO(dejan): now metrics are scrapped on each workflow exetucution and we get an error when connecting to Control Plane even with publicly trusted certificates.
// Until a better solution is implemented, TLS verification will be skipped.
cfg.SkipVerify = true
cloudConn, err = agentclient.NewGRPCConnection(context.Background(), cfg.TlsInsecure, cfg.SkipVerify, cfg.Url, "", "", "", logger)
if err != nil {
ui.Fail(fmt.Errorf("failed to connect with Cloud: %w", err))
Expand Down

0 comments on commit 644e410

Please sign in to comment.