Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }