Skip to content

Commit

Permalink
feat: datadog provider entry added in the provider selector (#554)
Browse files Browse the repository at this point in the history
Signed-off-by: Sudipto Baral <[email protected]>
  • Loading branch information
sudiptob2 committed Feb 17, 2023
1 parent 97f9f39 commit d94928f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions operator/controllers/common/providers/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

"github.com/go-logr/logr"
klcv1alpha2 "github.com/keptn/lifecycle-toolkit/operator/apis/lifecycle/v1alpha2"
"github.com/keptn/lifecycle-toolkit/operator/controllers/common/providers/datadog"
"github.com/keptn/lifecycle-toolkit/operator/controllers/common/providers/dynatrace"
"github.com/keptn/lifecycle-toolkit/operator/controllers/common/providers/keptnmetric"
"github.com/keptn/lifecycle-toolkit/operator/controllers/common/providers/prometheus"
Expand Down Expand Up @@ -43,6 +44,11 @@ func NewProvider(provider string, log logr.Logger, k8sClient client.Client) (Kep
Log: log,
K8sClient: k8sClient,
}, nil
case DataDogProviderName:
return &datadog.KeptnDataDogProvider{
Log: log,
HttpClient: http.Client{},
}, nil
default:
return nil, fmt.Errorf("provider %s not supported", provider)
}
Expand Down

0 comments on commit d94928f

Please sign in to comment.