// <summary> /// Loads Kube Config /// </summary> /// <param name="kubeconfigStream">Kube config file contents stream</param> /// <returns>Instance of the <see cref="K8SConfiguration"/> class</returns> public static async Task <K8SConfiguration> LoadKubeConfigAsync(Stream kubeconfigStream) { return(await Yaml.LoadFromStreamAsync <K8SConfiguration>(kubeconfigStream)); }