Skip to content

Commit

Permalink
Fix back compat issues with UDS config (#11318)
Browse files Browse the repository at this point in the history
SocketPath needs to be omitted when empty to avoid confusing older versions of Consul

Signed-off-by: Mark Anderson <manderson@hashicorp.com>
  • Loading branch information
markan authored and hc-github-team-consul-core committed Oct 28, 2021
1 parent 327678f commit 78a44ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/11318.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
api: fixed backwards compatibility issue with AgentService SocketPath field.
```
2 changes: 1 addition & 1 deletion api/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type AgentService struct {
Meta map[string]string
Port int
Address string
SocketPath string
SocketPath string `json:",omitempty"`
TaggedAddresses map[string]ServiceAddress `json:",omitempty"`
Weights AgentWeights
EnableTagOverride bool
Expand Down

0 comments on commit 78a44ce

Please sign in to comment.