Skip to content

Commit

Permalink
Fix Azure config (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Sep 28, 2019
1 parent cd8e39e commit 9efe3f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kubernetes/config/azure.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package config

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

0 comments on commit 9efe3f7

Please sign in to comment.