mirror of
https://github.com/kubevela/kubevela.git
synced 2026-02-14 18:10:21 +00:00
Merge pull request #360 from captainroy-hy/fix-hack-generate
fix minor bug in generate.go
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user