diff --git a/kubernetes/config/azure.go b/kubernetes/config/azure.go index b918a2d..ac77a40 100644 --- a/kubernetes/config/azure.go +++ b/kubernetes/config/azure.go @@ -1,7 +1,6 @@ package config import ( - "encoding/json" "fmt" "log" "strconv" @@ -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 {