X Tutup
Skip to content

Filtering on stack service name with Kubernetes should match prefix #1092

@silvin-lubecki

Description

@silvin-lubecki

Description
When we filter on a service name, it requires an exact match, but it should follow swarm filter and match the prefix:

# Kubernetes matches only exact name
$ docker stack service mystack --filter name=exact-name --orchestrator=kubernetes
ID                  NAME                   MODE                REPLICAS            IMAGE                 PORTS
af5e0438-634        mystack_exact-name     replicated          0/1                 docker-teaches-code   *:8080->8080/tcp

# And not prefix
$ docker stack service mystack --filter name=exact --orchestrator=kubernetes
ID                  NAME                   MODE                REPLICAS            IMAGE                 PORTS

# But swarm does
$ docker stack service mystack --filter name=exact --orchestrator=swarm
ID                  NAME                   MODE                REPLICAS            IMAGE                 PORTS
n6arf4cjh6av        mystack_exact-name     replicated          0/1                 docker-teaches-code   *:8080->8080/tcp

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup