Skip to content

Commit

Permalink
Switch Nutanix Client to using Session Auth
Browse files Browse the repository at this point in the history
This will ensure we make fewer basic auth requests to Prism Central
IAM Services.
  • Loading branch information
thunderboltsid committed Apr 5, 2024
1 parent 767aef4 commit 8fa36b1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ func (n *NutanixClientHelper) BuildClientForNutanixClusterWithFallback(ctx conte
return nil, err
}
creds := prismgoclient.Credentials{
URL: me.Address.Host,
Endpoint: me.Address.Host,
Insecure: me.Insecure,
Username: me.ApiCredentials.Username,
Password: me.ApiCredentials.Password,
URL: me.Address.Host,
Endpoint: me.Address.Host,
Insecure: me.Insecure,
Username: me.ApiCredentials.Username,
Password: me.ApiCredentials.Password,
SessionAuth: true,
}
return Build(creds, me.AdditionalTrustBundle)
}
Expand Down

0 comments on commit 8fa36b1

Please sign in to comment.