public async Task <IEnumerable <HelmRelease> > HandleAsync(GetReleases query) { var contexts = await kubernetesClient.GetContexts(); var releases = new List <HelmRelease>(); foreach (var context in contexts) { releases.AddRange(await helmClient.List(context.Name)); } return(releases); }
public async Task <IEnumerable <KubernetesContext> > HandleAsync(GetClusters query) { return(await kubernetesClient.GetContexts()); }