From 61b941970c6730b9530f51415335d9232a669caa Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Mon, 26 Feb 2024 16:39:35 -0800 Subject: [PATCH] hide containerApp for exposes services for prev4 (#3444) --- cli/azd/pkg/apphost/service_ingress_configurer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/azd/pkg/apphost/service_ingress_configurer.go b/cli/azd/pkg/apphost/service_ingress_configurer.go index 368a7e618d4..2e39a610508 100644 --- a/cli/azd/pkg/apphost/service_ingress_configurer.go +++ b/cli/azd/pkg/apphost/service_ingress_configurer.go @@ -22,7 +22,9 @@ func NewIngressSelector(manifest *Manifest, console input.Console) *IngressSelec func (adc *IngressSelector) SelectPublicServices(ctx context.Context) ([]string, error) { var services []string for name, res := range adc.manifest.Resources { - if (res.Type == "container.v0" || res.Type == "project.v0" || res.Type == "dockerfile.v0") && len(res.Bindings) > 0 { + // "container.v0" not supported on aspire-prev4 + // see: https://github.com/Azure/azure-dev/issues/3441 + if (res.Type == "project.v0" || res.Type == "dockerfile.v0") && len(res.Bindings) > 0 { services = append(services, name) } }