2
0
Feroze Mohideen 2 жил өмнө
parent
commit
c31bee08ed

+ 4 - 0
internal/porter_app/v2/yaml.go

@@ -31,6 +31,10 @@ func AppProtoFromYaml(ctx context.Context, porterYamlBytes []byte, appName strin
 		porterYaml.Name = appName
 	}
 
+	if porterYaml.Name != "" && appName != "" && porterYaml.Name != appName {
+		return nil, nil, telemetry.Error(ctx, span, nil, "name specified in porter.yaml does not match app name")
+	}
+
 	appProto := &porterv1.PorterApp{
 		Name: porterYaml.Name,
 	}