@@ -5,7 +5,7 @@ namespace k8s.KubeConfigModels
|
|||||||
public class ExecStatus
|
public class ExecStatus
|
||||||
{
|
{
|
||||||
#nullable enable
|
#nullable enable
|
||||||
public DateTime? Expiry { get; set; }
|
public DateTime? ExpirationTimestamp { get; set; }
|
||||||
public string? Token { get; set; }
|
public string? Token { get; set; }
|
||||||
public string? ClientCertificateData { get; set; }
|
public string? ClientCertificateData { get; set; }
|
||||||
public string? ClientKeyData { get; set; }
|
public string? ClientKeyData { get; set; }
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ namespace k8s.Authentication
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (response.Status.Expiry == null)
|
if (response.Status.ExpirationTimestamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return DateTime.UtcNow.AddSeconds(30) > response.Status.Expiry;
|
return DateTime.UtcNow.AddSeconds(30) > response.Status.ExpirationTimestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(CancellationToken cancellationToken)
|
public async Task<AuthenticationHeaderValue> GetAuthenticationHeaderAsync(CancellationToken cancellationToken)
|
||||||
|
|||||||
Reference in New Issue
Block a user