mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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:
@@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user