mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 18:05:42 +03:00
Removing addition of the client service while reconciling services
This commit is contained in:
@@ -1216,14 +1216,6 @@ func (c *Client) syncConsul() {
|
||||
}
|
||||
}
|
||||
|
||||
// Add the client service
|
||||
clientService := &structs.Service{
|
||||
Name: c.config.ClientServiceName,
|
||||
PortLabel: "clienthttpaddr",
|
||||
}
|
||||
svcIdentifier := fmt.Sprintf("%s-%s", "agent", "client")
|
||||
services[clientService.ID(svcIdentifier)] = struct{}{}
|
||||
|
||||
if err := c.consulService.KeepServices(services); err != nil {
|
||||
c.logger.Printf("[DEBUG] client: error removing services from non-running tasks: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user