Skip to content

Commit

Permalink
[chore] move k8sattributes processor to generated lifecycle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Jan 10, 2024
1 parent 2d5b9a8 commit 7d03122
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 3 deletions.
122 changes: 122 additions & 0 deletions processor/k8sattributesprocessor/generated_component_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion processor/k8sattributesprocessor/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.20
require (
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.5.0
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.92.0
github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig v0.92.0
github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8stest v0.92.0
github.com/stretchr/testify v1.8.4
Expand Down Expand Up @@ -68,7 +69,7 @@ require (
github.com/mostynb/go-grpc-compression v1.2.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
github.com/openshift/api v3.9.0+incompatible // indirect
github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142 // indirect
github.com/pkg/errors v0.9.1 // indirect
Expand Down Expand Up @@ -127,3 +128,5 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8ste

// ambiguous import: found package cloud.google.com/go/compute/metadata in multiple modules
replace cloud.google.com/go v0.54.0 => cloud.google.com/go v0.110.10

replace github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal => ../../internal/coreinternal
6 changes: 4 additions & 2 deletions processor/k8sattributesprocessor/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions processor/k8sattributesprocessor/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ resource_attributes:
description: Container image tag. Requires container.id or k8s.container.name.
type: string
enabled: true

tests:
config:

0 comments on commit 7d03122

Please sign in to comment.