Skip to content

Commit

Permalink
Merge pull request #26 from brendandburns/azure
Browse files Browse the repository at this point in the history
Update Azure config.
  • Loading branch information
k8s-ci-robot authored May 16, 2019
2 parents ee48eb4 + 109e14c commit 075b33a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kubernetes/config/azure.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package config

import (
"encoding/json"
"fmt"
"log"
"strconv"
Expand Down Expand Up @@ -60,8 +61,8 @@ func (l *KubeConfigLoader) refreshAzureToken() error {
token := adal.Token{
AccessToken: l.user.AuthProvider.Config["access-token"],
RefreshToken: l.user.AuthProvider.Config["refresh-token"],
ExpiresIn: l.user.AuthProvider.Config["expires-in"],
ExpiresOn: l.user.AuthProvider.Config["expires-in"],
ExpiresIn: json.Number(l.user.AuthProvider.Config["expires-in"]),
ExpiresOn: json.Number(l.user.AuthProvider.Config["expires-in"]),
}
sptToken, err := adal.NewServicePrincipalTokenFromManualToken(*config, clientID, resource, token)
if err := sptToken.Refresh(); err != nil {
Expand Down

0 comments on commit 075b33a

Please sign in to comment.