We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65629b commit e65bef2Copy full SHA for e65bef2
main.go
@@ -29,6 +29,7 @@ import (
29
"github.com/spf13/pflag"
30
colfeaturegate "go.opentelemetry.io/collector/featuregate"
31
networkingv1 "k8s.io/api/networking/v1"
32
+ "k8s.io/apimachinery/pkg/labels"
33
k8sruntime "k8s.io/apimachinery/pkg/runtime"
34
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
35
"k8s.io/client-go/kubernetes"
@@ -275,6 +276,9 @@ func main() {
275
276
}),
277
Cache: cache.Options{
278
DefaultNamespaces: namespaces,
279
+ DefaultLabelSelector: labels.SelectorFromSet(map[string]string{
280
+ "app.kubernetes.io/managed-by": "opentelemetry-operator",
281
+ }),
282
},
283
}
284
0 commit comments