Skip to content

Commit

Permalink
skip tls verify when use default metric server
Browse files Browse the repository at this point in the history
Signed-off-by: root <[email protected]>
  • Loading branch information
huanghuangzym committed Sep 12, 2024
1 parent b6ac5e1 commit 67f3460
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/metrics/observers/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ type Factory struct {

func NewFactory(metricsServer string) (*Factory, error) {
client, err := providers.NewPrometheusProvider(flaggerv1.MetricTemplateProvider{
Type: "prometheus",
Address: metricsServer,
SecretRef: nil,
Type: "prometheus",
Address: metricsServer,
SecretRef: nil,
InsecureSkipVerify: true,
}, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit 67f3460

Please sign in to comment.