File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import (
37
37
"github.com/tidwall/sjson"
38
38
"github.com/youthlin/stream"
39
39
streamtypes "github.com/youthlin/stream/types"
40
- "gopkg.in/yaml.v2 "
40
+ "gopkg.in/yaml.v3 "
41
41
)
42
42
43
43
const (
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import (
16
16
"github.com/youthlin/stream"
17
17
streamtypes "github.com/youthlin/stream/types"
18
18
"golang.org/x/oauth2"
19
- "gopkg.in/yaml.v2 "
19
+ "gopkg.in/yaml.v3 "
20
20
21
21
"github.com/pingcap/monitoring/pkg/ansible"
22
22
"github.com/pingcap/monitoring/pkg/common"
@@ -428,7 +428,7 @@ func removeLastSlash(str string) string {
428
428
func Load (s string ) (* Config , error ) {
429
429
cfg := & Config {}
430
430
431
- err := yaml .UnmarshalStrict ([]byte (s ), cfg )
431
+ err := yaml .Unmarshal ([]byte (s ), cfg )
432
432
if err != nil {
433
433
return nil , err
434
434
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ require (
18
18
github.com/tidwall/sjson v1.2.5
19
19
github.com/youthlin/stream v0.0.3
20
20
golang.org/x/oauth2 v0.23.0
21
- gopkg.in/yaml.v2 v2.4.0
21
+ gopkg.in/yaml.v3 v3.0.1
22
22
k8s.io/client-go v0.29.3
23
23
)
24
24
@@ -96,7 +96,7 @@ require (
96
96
google.golang.org/protobuf v1.34.2 // indirect
97
97
gopkg.in/inf.v0 v0.9.1 // indirect
98
98
gopkg.in/warnings.v0 v0.1.2 // indirect
99
- gopkg.in/yaml.v3 v3.0.1 // indirect
99
+ gopkg.in/yaml.v2 v2.4.0 // indirect
100
100
k8s.io/apimachinery v0.29.3 // indirect
101
101
k8s.io/klog/v2 v2.130.1 // indirect
102
102
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
"github.com/prometheus/prometheus/model/rulefmt"
11
11
"github.com/youthlin/stream"
12
12
streamtypes "github.com/youthlin/stream/types"
13
- "gopkg.in/yaml.v2 "
13
+ "gopkg.in/yaml.v3 "
14
14
)
15
15
16
16
const (
You can’t perform that action at this time.
0 commit comments