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

Add Pod object to K8s meta #710

Merged
merged 21 commits into from
Dec 3, 2024
Merged

Add Pod object to K8s meta #710

merged 21 commits into from
Dec 3, 2024

Conversation

DmitryRomanov
Copy link
Collaborator

@DmitryRomanov DmitryRomanov commented Nov 26, 2024

Description

Add k8s.io/api/core/v1.Pod object to meta

Example of use

input:
  type: k8s
  file_config:
    persistence_mode: async
    filename_pattern: "*"
  watching_dir: /var/log/containers/
  offsets_file: /data/k8s-offsets.yaml
  allowed_pod_labels: [app, jobid]
  meta:
    component: "{{ index .pod.Labels \"component\" }}"

@DmitryRomanov DmitryRomanov force-pushed the k8s-meta-extend branch 4 times, most recently from 6752608 to f50abe6 Compare November 26, 2024 09:43
@DmitryRomanov DmitryRomanov changed the title K8s meta extend Add Pod object to K8s meta Nov 26, 2024
@DmitryRomanov DmitryRomanov marked this pull request as ready for review November 26, 2024 10:05
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 20 lines in your changes missing coverage. Please review.

Project coverage is 72.98%. Comparing base (e02c4a6) to head (d558c90).
Report is 16 commits behind head on master.

Files with missing lines Patch % Lines
plugin/input/k8s/meta/gatherer.go 72.97% 10 Missing ⚠️
plugin/input/k8s/meta/meta.go 20.00% 7 Missing and 1 partial ⚠️
pipeline/metadata/templater.go 95.74% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #710      +/-   ##
==========================================
+ Coverage   72.28%   72.98%   +0.70%     
==========================================
  Files         137      142       +5     
  Lines       13985    14633     +648     
==========================================
+ Hits        10109    10680     +571     
- Misses       3311     3359      +48     
- Partials      565      594      +29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DmitryRomanov DmitryRomanov force-pushed the k8s-meta-extend branch 2 times, most recently from 78ef827 to f0af346 Compare November 29, 2024 09:50
@DmitryRomanov DmitryRomanov merged commit 67a1249 into master Dec 3, 2024
8 checks passed
@DmitryRomanov DmitryRomanov deleted the k8s-meta-extend branch December 3, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants