hashicorp / hashicorp/consul

Option to deactivate the default subset (Service Mesh)

Open
#19,939 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

#### Feature Description

I want to disable the default subset in the resolver. This will ensure that if the router cannot determine which subset to send the request to, the request will fail instead of being sent to the default subset.

Currently, the only way to achieve this is by defining a subset with a filter that will never return service instances.

```
Kind = "service-resolver"
Name = "web"
DefaultSubset = "default"
Subsets = {
v1 = {
Filter = "Service.Meta.version == v1"
}
default = {
Filter = "Service.Meta.neverexist == neverexist"
}
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.