Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename deployFilePath to designFilePath #1783

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading