Use configured token in the Nomad client

This commit is contained in:
Kevin Pollet
2022-06-20 15:42:09 +02:00
committed by GitHub
parent 9ccc8cfb25
commit 6e535f8cef
2 changed files with 3 additions and 81 deletions

View File

@@ -164,9 +164,10 @@ func (p *Provider) loadConfiguration(ctx context.Context, configurationC chan<-
func createClient(namespace string, endpoint *EndpointConfig) (*api.Client, error) {
config := api.Config{
Address: endpoint.Address,
Region: endpoint.Region,
WaitTime: time.Duration(endpoint.EndpointWaitTime),
Namespace: namespace,
Region: endpoint.Region,
SecretID: endpoint.Token,
WaitTime: time.Duration(endpoint.EndpointWaitTime),
}
if endpoint.TLS != nil {