/// <summary> /// Returns the list of deployments for the current cluster. /// </summary> /// <returns>The list of deployments.</returns> public async Task <IList <GkeDeployment> > GetDeploymentsAsync() { GkeList <GkeDeployment> deployments = await GetKubectlCommandOutputAsync <GkeList <GkeDeployment> >("get deployments"); return(deployments.Items); }
/// <summary> /// Returns the list of services running in the current cluster. /// </summary> /// <returns>The list of services.</returns> public async Task <IList <GkeService> > GetServicesAsync() { GkeList <GkeService> services = await GetKubectlCommandOutputAsync <GkeList <GkeService> >("get services"); return(services.Items); }