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

build(deps): bump k8s.io/client-go, k8s.io/apimachinery, k8s.io/api, … #1251

Merged
merged 8 commits into from
Jul 24, 2024

Conversation

jiuxia211
Copy link
Contributor

…sigs.k8s.io/controller-runtime,github.com/onsi/gomega

What this PR does / why we need it:

This PR updates multiple dependencies to their latest versions to ensure compatibility and benefit from the latest features and bug fixes. Specifically, it bumps the following dependencies:

  • k8s.io/client-go from 0.26.3 to 0.30.2
  • k8s.io/apimachinery from 0.27.4 to 0.30.2
  • k8s.io/api from 0.26.3 to 0.30.2
  • sigs.k8s.io/controller-runtime from 0.14.6 to 0.18.4
  • github.com/onsi/gomega from 1.30.0 to 1.33.1

Which issue(s) this PR fixes:

Fixes #

Does this PR introduced a user-facing change?

None


Additional documentation, usage docs, etc.:


…sigs.k8s.io/controller-runtime,github.com/onsi/gomega
@wenchajun
Copy link
Member

Thanks for the PR. You'll need to sign your commit by:

git commit -s --amend
git push -f

@wenchajun
Copy link
Member

I see

./hack/update-codegen.sh
>> Temporary output directory /tmp/tmp.9aV294mKFK
ERROR: generate-groups.sh has been removed.
ERROR: Please use k8s.io/code-generator/kube_codegen.sh instead.

@@ -1,85 +1,85 @@
module github.com/fluent/fluent-operator/v2

go 1.21
go 1.22.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files in the dockerfile also need to be upgraded to the latest.

@jiuxia211
Copy link
Contributor Author

I see

./hack/update-codegen.sh
>> Temporary output directory /tmp/tmp.9aV294mKFK
ERROR: generate-groups.sh has been removed.
ERROR: Please use k8s.io/code-generator/kube_codegen.sh instead.

I updated update-codegen.sh following https://github.com/weaveworks/flagger/tree/main/hack but it doesn't seem to produce any output or changes and I'm not quite sure why this is happening

@benjaminhuo
Copy link
Member

Great, thanks @jiuxia211 !
Looks like only one problem remains:
image

cc @wanjunlei

@wenchajun
Copy link
Member

I see

./hack/update-codegen.sh
>> Temporary output directory /tmp/tmp.9aV294mKFK
ERROR: generate-groups.sh has been removed.
ERROR: Please use k8s.io/code-generator/kube_codegen.sh instead.

I updated update-codegen.sh following https://github.com/weaveworks/flagger/tree/main/hack but it doesn't seem to produce any output or changes and I'm not quite sure why this is happening

You can run the command in your machine

make verify-codegen
>> Temporary output directory /tmp/tmp.oapWI9rc0l
ERROR: generate-groups.sh has been removed.
ERROR: Please use k8s.io/code-generator/kube_codegen.sh instead.

>> Removing /tmp/tmp.oapWI9rc0l
make: ***Makefile:91: verify-codegen] Error 1

@wenchajun
Copy link
Member

@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.21.5-alpine3.17 as builder
FROM --platform=$BUILDPLATFORM golang:1.22.5-alpine3.20 as builder

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it 1.22.5 and not 1.22.0?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go released 1.22.5 recently, it might be ok?

Copy link
Contributor Author

@jiuxia211 jiuxia211 Jul 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wiil change them

&& gem install elasticsearch-xpack -v 7.13.3 \
&& gem install fluent-plugin-detect-exceptions -v 0.0.14 \
&& gem install \
fluent-plugin-s3 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the built-in fluentd plugins shouldn't be remove I think

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wanjunlei @wenchajun what do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the latest fluentd build workflow:

Using a image on dockerhub kubesphere org as base image is not ok in my opinion

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this is a modification I didn't realize. I made a mistake when I copied it.

@benjaminhuo
Copy link
Member

This is great, thank you @jiuxia211 !

@benjaminhuo benjaminhuo merged commit ffb0121 into fluent:master Jul 24, 2024
9 of 10 checks passed
@benjaminhuo
Copy link
Member

@jiuxia211 is it possible for you to upgrade these new dependencies?

Thanks

image

@jiuxia211
Copy link
Contributor Author

@jiuxia211 is it possible for you to upgrade these new dependencies?

Thanks

image

OK, assign it to me

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.

4 participants