File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/kitagry/kj
3
3
go 1.16
4
4
5
5
require (
6
- github.com/goccy/go-yaml v1.8.9
6
+ github.com/goccy/go-yaml v1.8.10
7
7
github.com/mattn/go-tty v0.0.3
8
8
k8s.io/api v0.21.1
9
9
k8s.io/apimachinery v0.21.1
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD87
82
82
github.com/go-playground/universal-translator v0.17.0 /go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA =
83
83
github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE =
84
84
github.com/go-playground/validator/v10 v10.4.1 /go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4 =
85
- github.com/goccy/go-yaml v1.8.9 h1:4AEXg2qx+/w29jXnXpMY6mTckmYu1TMoHteKuMf0HFg =
86
- github.com/goccy/go-yaml v1.8.9 /go.mod h1:U/jl18uSupI5rdI2jmuCswEA2htH9eXfferR3KfscvA =
85
+ github.com/goccy/go-yaml v1.8.10 h1:XpBOLD8cmOZlLYjUFPqSZZ+Ubi4/UKxO2eXyhg5WuAA =
86
+ github.com/goccy/go-yaml v1.8.10 /go.mod h1:U/jl18uSupI5rdI2jmuCswEA2htH9eXfferR3KfscvA =
87
87
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q =
88
88
github.com/gogo/protobuf v1.3.2 /go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q =
89
89
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b /go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q =
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ func TestKubeconfig_CurrentNamespace(t *testing.T) {
49
49
},
50
50
"Context has no namespace" : {
51
51
currentContext : "a" ,
52
- expect : "" ,
52
+ expect : "default " ,
53
53
},
54
54
"Context doesn't exist" : {
55
55
currentContext : "not exist context" ,
56
- expect : "" ,
56
+ expect : "default " ,
57
57
},
58
58
}
59
59
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
10
10
"path/filepath"
11
11
"strings"
12
12
13
- "github.com/goccy/go-yaml"
14
13
"github.com/mattn/go-tty"
15
14
batchv1 "k8s.io/api/batch/v1"
16
15
batchv1beta1 "k8s.io/api/batch/v1beta1"
@@ -19,6 +18,7 @@ import (
19
18
_ "k8s.io/client-go/plugin/pkg/client/auth"
20
19
"k8s.io/client-go/tools/clientcmd"
21
20
"k8s.io/client-go/util/homedir"
21
+ "sigs.k8s.io/yaml"
22
22
)
23
23
24
24
const cmdName = "kj"
You can’t perform that action at this time.
0 commit comments