mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
consul: plubming for specifying consul namespace in job/group
This PR adds the common OSS changes for adding support for Consul Namespaces, which is going to be a Nomad Enterprise feature. There is no new functionality provided by this changeset and hopefully no new bugs.
This commit is contained in:
@@ -1158,7 +1158,8 @@ func (a *Agent) setupConsul(consulConfig *config.ConsulConfig) error {
|
||||
}
|
||||
// Create Consul Agent client for looking info about the agent.
|
||||
consulAgentClient := consulClient.Agent()
|
||||
a.consulService = consul.NewServiceClient(consulAgentClient, a.logger, isClient)
|
||||
namespacesClient := consul.NewNamespacesClient(consulClient.Namespaces())
|
||||
a.consulService = consul.NewServiceClient(consulAgentClient, namespacesClient, a.logger, isClient)
|
||||
a.consulProxies = consul.NewConnectProxiesClient(consulAgentClient)
|
||||
|
||||
// Run the Consul service client's sync'ing main loop
|
||||
|
||||
Reference in New Issue
Block a user