|
@@ -31,6 +31,10 @@ func AppProtoFromYaml(ctx context.Context, porterYamlBytes []byte, appName strin
|
|
|
porterYaml.Name = appName
|
|
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{
|
|
appProto := &porterv1.PorterApp{
|
|
|
Name: porterYaml.Name,
|
|
Name: porterYaml.Name,
|
|
|
}
|
|
}
|