Skip to content

[layers v2] services names should not be required to be globally unique #9854

Description

For the first pass, I've made it so services are still considered globally unique, so we didn't have to change all of the CLI surface for this next change, as it was getting large. This mirrors the constraint we had in layers v1.

This issue tracks removing some of the code that's requiring uniqueness:

  • project/validate (validateParsedConfig), which puts all services into the same map
  • ProjectConfig.Services, which also merges everything into a single map

We'll also want to make sure that up and provision both handle addressing services. There's some possibilities there:

  • If a name is globally unambiguous, allow azd deploy <service> and just search all the layers for that name. We could error out if it turns out that name is in more than one layer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/layered-provisioningLayered provisioning featurearea/projectProject config, project_manager, service_managerenhancementNew feature or improvement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions