kindling icon indicating copy to clipboard operation
kindling copied to clipboard

Add label select for k8s metadata processor

Open llhhbc opened this issue 1 year ago • 6 comments

Description

Add label selector for k8s metadata processor. For only need watch some pod by label selector. I'm not sure if I should limit which pods to fetch only in origin.

Related Issue

Motivation and Context

How Has This Been Tested?

llhhbc avatar May 13 '23 13:05 llhhbc

Could you please also provide an example of the configuration for selecting specified pods? It seems like you are using a set of "pod's labels" to match the "DataGroup's labels" which contain no k8s metadata when consumed by this processor.

dxsup avatar May 15 '23 09:05 dxsup

I just ues the struct of kubernetes, It's configable. I will add some examples.

llhhbc avatar May 15 '23 13:05 llhhbc

@dxsup I have add some docs

llhhbc avatar May 16 '23 07:05 llhhbc

@dxsup Can this be merged?

llhhbc avatar Jul 26 '23 01:07 llhhbc

Sorry for the late reply. I guess the intention of this PR is to filter the DataGroups that match the labels given in the configuration file. A better implementation is we introduce a new processor which is designed to finish only this feature. How do you think? Could you spare time to finish this feature as a new processor?

dxsup avatar Jul 26 '23 01:07 dxsup

ok

llhhbc avatar Jul 31 '23 14:07 llhhbc