Skip to content

Commit

Permalink
add dummy kubenodeprovider in no_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
adel121 committed Aug 19, 2024
1 parent dec764e commit 2ea8eec
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions pkg/util/kubernetes/hostinfo/no_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,23 @@

package hostinfo

import "context"
import (
"context"

"github.com/DataDog/datadog-agent/pkg/config"
)

// KubeNodeTagsProvider allows computing node tags based on the user configurations for node labels and annotations as tags
type KubeNodeTagsProvider struct{}

// NewKubeNodeTagsProvider creates and returns a new kube node tags provider object
func NewKubeNodeTagsProvider(_ config.Reader) KubeNodeTagsProvider {
return KubeNodeTagsProvider{}
}

// GetTags gets the tags from the kubernetes apiserver
//
//nolint:revive // TODO(CINT) Fix revive linter
func GetTags(_ context.Context) ([]string, error) {
func (k KubeNodeTagsProvider) GetTags(_ context.Context) ([]string, error) {
return nil, nil
}

0 comments on commit 2ea8eec

Please sign in to comment.