From ceaf6db82c92abe75d1ec16dca5893eb5120db93 Mon Sep 17 00:00:00 2001 From: roy wang Date: Thu, 8 Oct 2020 19:09:22 +0900 Subject: [PATCH] fix minor bugs in generate.go Signed-off-by: roy wang --- hack/chart/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/chart/generate.go b/hack/chart/generate.go index 43ca16dac..e47fd862f 100644 --- a/hack/chart/generate.go +++ b/hack/chart/generate.go @@ -57,7 +57,7 @@ func fixOpenAPIV3SchemaValidationIssue(chartPath string) (string, error) { } defer targetFile.Close() - if strings.Contains(path, filepath.Join(chartPath, "crds")) && info.Name() == "standard.oam.dev_podspecworkloads" { + if strings.Contains(path, filepath.Join(chartPath, "crds")) && info.Name() == "standard.oam.dev_podspecworkloads.yaml" { f, err := os.OpenFile(path, os.O_RDONLY, os.ModePerm) if err != nil { fmt.Fprintln(os.Stderr, "failed to open file", path)