From 9cc279e3cc51d209aae8c5672a0e367634e740d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Julia=CC=81n?= Date: Fri, 24 Jan 2025 22:38:33 +0100 Subject: [PATCH] Add provider for serverless builds --- comp/core/autodiscovery/providers/gpu_nop.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 comp/core/autodiscovery/providers/gpu_nop.go diff --git a/comp/core/autodiscovery/providers/gpu_nop.go b/comp/core/autodiscovery/providers/gpu_nop.go new file mode 100644 index 00000000000000..1920504356a0e3 --- /dev/null +++ b/comp/core/autodiscovery/providers/gpu_nop.go @@ -0,0 +1,17 @@ +// Unless explicitly stated otherwise all files in this repository are licensed +// under the Apache License Version 2.0. +// This product includes software developed at Datadog (https://www.datadoghq.com/). +// Copyright 2016-present Datadog, Inc. + +//go:build serverless + +package providers + +import ( + "github.com/DataDog/datadog-agent/comp/core/autodiscovery/telemetry" + workloadmeta "github.com/DataDog/datadog-agent/comp/core/workloadmeta/def" + pkgconfigsetup "github.com/DataDog/datadog-agent/pkg/config/setup" +) + +// NewGPUConfigProvider is a no-op for the serverless build, as we don't have GPU support there +var NewGPUConfigProvider func(providerConfig *pkgconfigsetup.ConfigurationProviders, wmeta workloadmeta.Component, telemetry *telemetry.Store) (ConfigProvider, error)