Skip to content

Services selectors #345

@Gabrielbdd

Description

@Gabrielbdd

Is your feature request related to a problem?
No

Which solution do you suggest?
A declarative way to provide selectors for services in one place in the config.yaml

Currently, for use port-fowarding, sync, terminal, and the devspace enter command we should repeatedly provide the selector for the desired service:

devSpace:
  ports:
    - labelSelector:
        app: api
  sync:
    - labelSelector:
        app: api
  terminal:
    labelSelector:
      app: api

and

devspace enter -l app=api

What if we could instead provide a way to map the services with they respective selectors and then just reuse it?
Ex:

services:
  - name: api
    labelSelector:
      app: api
devSpace:
  ports:
    - service: api
  sync:
      service: api
  terminal:
    service: api

and

devspace enter api

or

devspace enter --service api

or

devspace enter -s api

I guess it will be much more clear to write config.yaml file and use the devspace enter command

/kind feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/configIssues related to the configkind/designMust be conceptually designedkind/enhancementEnhancement of an existing feature / improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions