fix obsolete warning about KubernetesYaml (#839)

This commit is contained in:
Zhiwei Liu
2022-04-22 22:17:36 +00:00
committed by GitHub
parent 262e16671c
commit 4db390f3af
4 changed files with 25 additions and 25 deletions

View File

@@ -168,7 +168,7 @@ namespace k8s
{
var reader = new StreamReader(stream);
var content = await reader.ReadToEndAsync().ConfigureAwait(false);
return LoadFromString<T>(content);
return Deserialize<T>(content);
}
public static async Task<T> LoadFromFileAsync<T>(string file)