Update for Go 1.24 (#7226)

* Update for Go 1.24

* Update Go build to 1.24.1.
* Update minimum Go version to 1.23.0.
* Bump golangci-lint version.

Signed-off-by: SuperQ <superq@gmail.com>

* Workaround confused golangci-lint error.

Signed-off-by: SuperQ <superq@gmail.com>

---------

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
Ben Kochie
2025-03-24 17:50:13 +01:00
committed by GitHub
parent 68867f5eec
commit a1cc54b719
4 changed files with 5 additions and 6 deletions

View File

@@ -129,11 +129,12 @@ func TestDefaultProcessorWithPod(t *testing.T) {
}
func testProcessorWithPod(t *testing.T, processor cache.ProcessFunc, idx cache.Indexer) {
container := api.Container{}
obj := &api.Pod{
ObjectMeta: metav1.ObjectMeta{Name: "pod1", Namespace: "test1"},
Spec: api.PodSpec{
Containers: []api.Container{
api.Container{},
container,
},
},
}
@@ -141,7 +142,7 @@ func testProcessorWithPod(t *testing.T, processor cache.ProcessFunc, idx cache.I
ObjectMeta: metav1.ObjectMeta{Name: "pod1", Namespace: "test1", DeletionTimestamp: &metav1.Time{Time: time.Now()}},
Spec: api.PodSpec{
Containers: []api.Container{
api.Container{},
container,
},
},
}