Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeHostsFile (0.12 sec)

  1. pkg/kubelet/kubelet_pods_test.go

    			assert.Equal(t, testCase.expectedHostsFileContent, string(actualContent), "hosts file content not expected")
    		})
    	}
    }
    
    // writeHostsFile will write a hosts file into a temporary dir, and return that dir.
    // Caller is responsible for deleting the dir and its contents.
    func writeHostsFile(filename string, cfg string) (string, error) {
    	tmpdir, err := os.MkdirTemp("", "kubelet=kubelet_pods_test.go=")
    	if err != nil {
    		return "", err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
Back to top