From ed563da88e817ce18a96dde4e00882ffa632ed7d Mon Sep 17 00:00:00 2001 From: Sudipto Baral Date: Fri, 17 Feb 2023 18:17:26 +0600 Subject: [PATCH] feat: datadog provider entry added in the provider selector (#554) Signed-off-by: Sudipto Baral --- operator/controllers/common/providers/provider.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/operator/controllers/common/providers/provider.go b/operator/controllers/common/providers/provider.go index bb49fef818..6e97d0a746 100644 --- a/operator/controllers/common/providers/provider.go +++ b/operator/controllers/common/providers/provider.go @@ -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" @@ -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) }