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

v0.10: update k8s #2134

Closed
wants to merge 15 commits into from
Closed

v0.10: update k8s #2134

wants to merge 15 commits into from

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Feb 22, 2024

No description provided.

mtardy and others added 5 commits February 22, 2024 10:00
[ upstream commit 76831cf ]

cilium/cilium/pkg/alignchecker now uses map[string][]any as second
argument to CheckStructAlignments so we have to pass the type directly
instead of the reflect.TypeOf. For more details, see:
cilium/cilium@e6d40ee

Signed-off-by: Mahe Tardy <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
[ upstream commit 3f57a01 ]

Added it to false even though it's not used anyway in the func
(cache.ResourceEventHandlerFuncs).OnAdd(obj interface{}, isInInitialList
bool) implementation.

Signed-off-by: Mahe Tardy <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
[upstream commit 06780d2 ]

We no longer need the special golangci-lint docker image since we now
build without CGO and can use the upstream image directly.

Secondly, this adds GOTOOLCHAIN=auto to the golangci-lint container
since it might ship older Go toolchain than our go.mod directive and
thus not being able to build the project.

Signed-off-by: Mahe Tardy <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
[ upstream commit 3f4cc32 ]

The default settings can hide existing issues until older ones are fixed, which leads to
a really frustrating back-and-forth with CI trying to get all outstanding issues fixed.

Signed-off-by: William Findlay <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt changed the title Pr/kkourt/v0.10 update k8s v0.10: update k8s Feb 22, 2024
@kkourt kkourt force-pushed the pr/kkourt/v0.10-update-k8s branch from c0235fa to b417fa0 Compare February 22, 2024 11:12
Signed-off-by: Kornilios Kourtis <[email protected]>
Appease the great revive!
rant: I really dislike having to change code from:

if foo, err := fn1(); err != nil {
   return err
} else if bar, err := foo.fn2(); err != nil  {
   return err
}

To:

foo, err := fn1()
if err != nil {
   return err
}
...

I think the first version is better due to scoping.

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt force-pushed the pr/kkourt/v0.10-update-k8s branch from b417fa0 to ea8775c Compare February 22, 2024 11:22
@kkourt kkourt force-pushed the pr/kkourt/v0.10-update-k8s branch from ea8775c to 93c2941 Compare February 22, 2024 11:46
willfindlay and others added 3 commits February 22, 2024 12:53
[ upstream commit bbce04f ]

Signed-off-by: William Findlay <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt force-pushed the pr/kkourt/v0.10-update-k8s branch from 93c2941 to eab6182 Compare February 22, 2024 11:54
Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt force-pushed the pr/kkourt/v0.10-update-k8s branch from eab6182 to 1a696b5 Compare February 22, 2024 12:22
Signed-off-by: Kornilios Kourtis <[email protected]>
... and run make generate and make codegen

Signed-off-by: Kornilios Kourtis <[email protected]>
Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt force-pushed the pr/kkourt/v0.10-update-k8s branch from 8e9da21 to 5885c55 Compare February 22, 2024 13:39
@kkourt kkourt closed this Feb 22, 2024
@kkourt kkourt deleted the pr/kkourt/v0.10-update-k8s branch October 23, 2024 11:20
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