Skip to content

Commit

Permalink
change func name
Browse files Browse the repository at this point in the history
Signed-off-by: ashish <[email protected]>
  • Loading branch information
Revolyssup committed Jan 21, 2022
1 parent 615cbc3 commit 2da4a6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/manifests/generateComponent.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func GenerateComponents(manifest string, resource int, cfg Config) (*Component,
return nil, err
}
path := filepath.Join(wd, "test.yaml")
removeMetadataFromCRD(&manifest)
removeHelmTemplatingFromCRD(&manifest)
err := populateTempyaml(manifest, path)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion utils/manifests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func populateTempyaml(yaml string, path string) error {

//removeMetadataFromCRD is used because in few cases (like linkerd), helm templating might be used there which makes the yaml invalid.
//As those templates are useless for component creatin, we can replace them with "meshery" to make the YAML valid
func removeMetadataFromCRD(crdyaml *string) {
func removeHelmTemplatingFromCRD(crdyaml *string) {
y := strings.Split(*crdyaml, "\n---\n")
var yamlArr []string
for _, y0 := range y {
Expand Down

0 comments on commit 2da4a6c

Please sign in to comment.