Skip to content

Commit

Permalink
Merge pull request #1783 from meshery/leecalcote/artifacthub/catalog-…
Browse files Browse the repository at this point in the history
…repo

rename deployFilePath to designFilePath
  • Loading branch information
leecalcote authored Jun 27, 2024
2 parents 32ff268 + 78b3d63 commit cc94aef
Show file tree
Hide file tree
Showing 181 changed files with 5 additions and 155,295 deletions.
10 changes: 5 additions & 5 deletions assets/artifact-hub-pkg/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ func getCompatibility(compatibility []string) string {

func writePatternFile(pattern CatalogPattern, patternType, patternInfo, patternCaveats, compatibility, patternImageURL string) error {
dir := filepath.Join("..", "..", mesheryCatalogFilesDir, pattern.ID)
deployFilePath := filepath.Join(dir, "design.yml")
designFilePath := filepath.Join(dir, "design.yml")
os.MkdirAll(dir, 0755)
if err := ioutil.WriteFile(deployFilePath, []byte(pattern.PatternFile), 0644); err != nil {
return utils.ErrWriteFile(err, deployFilePath)
if err := ioutil.WriteFile(designFilePath, []byte(pattern.PatternFile), 0644); err != nil {
return utils.ErrWriteFile(err, designFilePath)
}

contenttemp, err := ioutil.ReadFile(deployFilePath)
contenttemp, err := ioutil.ReadFile(designFilePath)
if err != nil {
return utils.ErrReadFile(err, deployFilePath)
return utils.ErrReadFile(err, designFilePath)
}

var datatemp map[string]interface{}
Expand Down
51 changes: 0 additions & 51 deletions catalog/0194ff83-0a43-4b83-9c75-b8f0f32da6b7/deploy.yml

This file was deleted.

Loading

0 comments on commit cc94aef

Please sign in to comment.