@@ -849,20 +849,21 @@ func TestKvListFormat(t *testing.T) {
849
849
keysValues : []interface {}{"pod" , "kubedns" , "spec" , struct {
850
850
X int
851
851
Y string
852
- }{X : 76 , Y : "strval" }},
853
- want : " pod=\" kubedns\" spec=struct { X int; Y string }{X:76, Y:\" strval\" }" ,
852
+ N time.Time
853
+ }{X : 76 , Y : "strval" , N : time .Date (2006 , 1 , 2 , 15 , 4 , 5 , .067890e9 , time .UTC )}},
854
+ want : " pod=\" kubedns\" spec={X:76 Y:strval N:2006-01-02 15:04:05.06789 +0000 UTC}" ,
854
855
},
855
856
{
856
857
keysValues : []interface {}{"pod" , "kubedns" , "values" , []int {8 , 6 , 7 , 5 , 3 , 0 , 9 }},
857
- want : " pod=\" kubedns\" values=[]int{8, 6, 7, 5, 3, 0, 9} " ,
858
+ want : " pod=\" kubedns\" values=[8 6 7 5 3 0 9] " ,
858
859
},
859
860
{
860
861
keysValues : []interface {}{"pod" , "kubedns" , "values" , []string {"deployment" , "svc" , "configmap" }},
861
- want : " pod=\" kubedns\" values=[]string{ \" deployment\" , \" svc\" , \" configmap\" } " ,
862
+ want : " pod=\" kubedns\" values=[deployment svc configmap] " ,
862
863
},
863
864
{
864
865
keysValues : []interface {}{"pod" , "kubedns" , "maps" , map [string ]int {"three" : 4 }},
865
- want : " pod=\" kubedns\" maps=map[string]int{ \" three\" :4} " ,
866
+ want : " pod=\" kubedns\" maps=map[three:4] " ,
866
867
},
867
868
{
868
869
keysValues : []interface {}{"pod" , KRef ("kube-system" , "kubedns" ), "status" , "ready" },
0 commit comments