mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	chore: io/ioutil deprecated
This commit is contained in:
		@@ -18,7 +18,6 @@ package downwardapi
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
	"io/ioutil"
 | 
					 | 
				
			||||||
	"os"
 | 
						"os"
 | 
				
			||||||
	"path/filepath"
 | 
						"path/filepath"
 | 
				
			||||||
	"runtime"
 | 
						"runtime"
 | 
				
			||||||
@@ -320,7 +319,7 @@ type stepName struct {
 | 
				
			|||||||
func (step stepName) getName() string { return step.name }
 | 
					func (step stepName) getName() string { return step.name }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func doVerifyLinesInFile(t *testing.T, volumePath, filename string, expected string) {
 | 
					func doVerifyLinesInFile(t *testing.T, volumePath, filename string, expected string) {
 | 
				
			||||||
	data, err := ioutil.ReadFile(filepath.Join(volumePath, filename))
 | 
						data, err := os.ReadFile(filepath.Join(volumePath, filename))
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		t.Errorf(err.Error())
 | 
							t.Errorf(err.Error())
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user