Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
silvin-lubecki opened this issue May 30, 2018 · 0 comments · Fixed by #1101
Closed

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

silvin-lubecki opened this issue May 30, 2018 · 0 comments · Fixed by #1101

Comments

@silvin-lubecki
Copy link
Contributor

silvin-lubecki commented May 30, 2018

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants