Skip to content

Commit

Permalink
Update control-plane/subcommand/connect-init/command.go
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Schochenmaier <kschoche@gmail.com>
  • Loading branch information
Thomas Eckert and kschoche committed Dec 1, 2021
1 parent db957e9 commit d978d20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions control-plane/subcommand/connect-init/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ func (c *Command) Run(args []string) int {
" If your pod is not starting also check the connect-inject deployment logs.")
}
if len(serviceList) > 2 {
c.logger.Error("There are multiple Consul services registered for this pod when there should only be one." +
" Check if there are multiple Kubernetes services pointing at this pod and add the label" +
" `consul.hashicorp.com/service-ignore: \"true\"` to services which should not be used by Consul for handling requests.")
c.logger.Error("There are multiple Consul services registered for this pod when there must only be one." +
" Check if there are multiple Kubernetes services selecting this pod and add the label" +
" `consul.hashicorp.com/service-ignore: \"true\"` to all services except the one used by Consul for handling requests.")
}

return fmt.Errorf("did not find correct number of services: %d", len(serviceList))
Expand Down

0 comments on commit d978d20

Please sign in to comment.