fabric8io / fluent-plugin-kubernetes_metadata_filter

Enrich your fluentd events with Kubernetes metadata
Apache License 2.0
350 stars 166 forks source link

Allow use of fluentd v1.17.0 #382

Closed kenhys closed 2 months ago

kenhys commented 3 months ago

$ bundle update fluentd

https://github.com/fluent/fluentd/releases/tag/v1.17.0

jcantrill commented 3 months ago

@kenhys are you able to confirm unit tests run without error possibly with several versions of ruby (ie. 2.7, 3.1)? I see failures here https://app.circleci.com/pipelines/github/fabric8io/fluent-plugin-kubernetes_metadata_filter but I have not seen CI in a while so not certain what needs to maybe change

kenhys commented 3 months ago

Since fluentd v1.17.0, the minimum requirement ruby version is raised to 2.7, so ruby-test-1 can't be satisfied anymore.

kenhys commented 3 months ago

It may be better to add ruby 3.2 and 3.3 too, but it is out of scope.

kenhys commented 3 months ago

Now passed.

image

kenhys commented 3 months ago

I've tried to replace with cimg/ruby.

https://app.circleci.com/pipelines/github/fabric8io/fluent-plugin-kubernetes_metadata_filter/347/workflows/d92d829f-c27b-4dd7-9ee2-643126870e14/jobs/1185

image

but it fails unexpectedly. it is strange that cimg/ruby seems based on focal, but error log indicates debian/buster :thinking:

kenhys commented 3 months ago

Surely it is focal...

docker run --rm -it cimg/ruby:2.7.8 /bin/bash
circleci@a22385b37a04:~/project$ ruby -v
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x86_64-linux]
circleci@a22385b37a04:~/project$ lsb_release -c
Codename:   focal
kenhys commented 3 months ago

got it. missingdeps: use it.

kenhys commented 3 months ago

circleci test with cimg/ruby has passed.

image

tobybellwood commented 3 months ago

got it. missingdeps: use it.

I'm pretty confident all those packages are already in the cimg/ruby (or cimg/base) image already now.

Maybe one to address separate to the 1.17 update though :wink:

kenhys commented 3 months ago

Maybe one to address separate to the 1.17 update though 😉

In this PR, it focus on not breaking CI, how to deal missingdeps is out of scope for now.

kenhys commented 3 months ago

https://github.com/fabric8io/fluent-plugin-kubernetes_metadata_filter/pull/382/commits/ec3cdc8684e082f8ff77f88de4c012a664ab2b46

Should I drop above commit from this PR?

kenhys commented 3 months ago

@tobybellwood thank you for review! It is very helpful.

@jcantrill Could you afford to review this PR?

jcantrill commented 2 months ago

https://rubygems.org/gems/fluent-plugin-kubernetes_metadata_filter/versions/3.5.0