Skip to content

Commit 38fffa6

Browse files
authored
fix: replaced "gopkg.in/yaml.v2" with "sigs.k8s.io/yaml" for parse yaml
1 parent 4bf9dca commit 38fffa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package config
33
import (
44
"os"
55

6-
"gopkg.in/yaml.v2"
76
corev1 "k8s.io/api/core/v1"
87
"k8s.io/utils/ptr"
8+
"sigs.k8s.io/yaml"
99
)
1010

1111
type Config struct {
@@ -14,8 +14,8 @@ type Config struct {
1414
}
1515

1616
type PodMutator struct {
17-
PatchToPod any `json:"patchToPod"`
18-
PatchToContainer any `json:"patchToContainer"`
17+
PatchToPod map[string]any `json:"patchToPod"`
18+
PatchToContainer map[string]any `json:"patchToContainer"`
1919
}
2020

2121
func LoadConfig(filename string) (*Config, error) {

0 commit comments

Comments
 (0)