mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 05:46:16 +00:00
Refactor helper method in api/volume/downwardapi
This commit is contained in:
parent
0f8cc8926f
commit
95ad0acf5e
@ -33,12 +33,12 @@ import (
|
|||||||
|
|
||||||
const basePath = "/tmp/fake"
|
const basePath = "/tmp/fake"
|
||||||
|
|
||||||
func formatMap(m map[string]string) string {
|
func formatMap(m map[string]string) (fmtstr string) {
|
||||||
var l string
|
|
||||||
for key, value := range m {
|
for key, value := range m {
|
||||||
l += key + "=" + fmt.Sprintf("%q", value) + "\n"
|
fmtstr += fmt.Sprintf("%v=%q\n", key, value)
|
||||||
}
|
}
|
||||||
return l
|
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func newTestHost(t *testing.T, client client.Interface) volume.VolumeHost {
|
func newTestHost(t *testing.T, client client.Interface) volume.VolumeHost {
|
||||||
|
Loading…
Reference in New Issue
Block a user