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)