Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter_kubernetes: support owner ownerReference #9631

Open
shuaich opened this issue Nov 21, 2024 · 0 comments
Open

filter_kubernetes: support owner ownerReference #9631

shuaich opened this issue Nov 21, 2024 · 0 comments

Comments

@shuaich
Copy link
Contributor

shuaich commented Nov 21, 2024

Is your feature request related to a problem? Please describe.
There is a new use case in GKE logging where owner reference data are needed in the labels field in LogEntry[1]. There is a need to retrieve owner reference data from kubernetes filter.

[1]https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry

Describe the solution you'd like
Add a new configuration parameter OwnerReferences, which defaults to Off. When enabled, the OwnerReferences information will added to records["kubernetes"]["ownerReferences"] and it contains two new key-value pairs.

"kind": "DaemonSet",
"name": "fluentbit-xxx-max",

image

OwnerReference data will be added for five k8s workloads: 'DaemonSet, StatefulSet, ReplicaSet, JobandCronJob`.

Describe alternatives you've considered
N/A

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants