From 9cb9f1d3498bd03fc6db45d4f572074470111441 Mon Sep 17 00:00:00 2001 From: Brandon Palm Date: Mon, 24 Nov 2025 10:24:56 -0600 Subject: [PATCH] Migrate away from deprecated ioutil --- pkg/operator/controller/controller_dns_configmap_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/operator/controller/controller_dns_configmap_test.go b/pkg/operator/controller/controller_dns_configmap_test.go index c2e0f1a0c..6df93b017 100644 --- a/pkg/operator/controller/controller_dns_configmap_test.go +++ b/pkg/operator/controller/controller_dns_configmap_test.go @@ -2,7 +2,7 @@ package controller import ( "errors" - "io/ioutil" + "os" "path" "testing" "time" @@ -1215,7 +1215,7 @@ func TestDesiredDNSConfigmapDNSNameResolverEnabled(t *testing.T) { // and returns the file contents as a string. func mustLoadTestFile(t *testing.T, name string) string { t.Helper() - corefile, err := ioutil.ReadFile(path.Join("testdata", name)) + corefile, err := os.ReadFile(path.Join("testdata", name)) if err != nil { t.Fatalf("Failed to read Corefile %s: %v", name, err) }