fix: Store custom resources in JSON & YAML format (#1360)

fix: Store custom resources as JSON and YAML files
This commit is contained in:
Evans Mungai
2023-10-10 17:50:15 +01:00
committed by GitHub
parent 461cc994ef
commit 73a2d882d7
4 changed files with 122 additions and 29 deletions

View File

@@ -50,7 +50,7 @@ func runCollect(v *viper.Viper, arg string) error {
collectorContent = spec
} else if _, err = os.Stat(arg); err == nil {
b, err := ioutil.ReadFile(arg)
b, err := os.ReadFile(arg)
if err != nil {
return err
}