Skip to content

Commit

Permalink
Add provider for serverless builds
Browse files Browse the repository at this point in the history
  • Loading branch information
gjulianm committed Jan 24, 2025
1 parent a11e0c7 commit 9cc279e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions comp/core/autodiscovery/providers/gpu_nop.go
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 9cc279e

Please sign in to comment.