pods

package
v0.0.0-...-0b60dbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdGetPods = &cobra.Command{
	Use:     "pods",
	Example: "  powerctl get pod",
	Short:   "Get Pod Info",
	Run: func(cmd *cobra.Command, args []string) {
		pods, err := kube.Client.GetAllPods()
		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}
		switch {
		case len(args) > 0:
			pods = pods.Search(args...)
		}
		for _, p := range pods.Items {
			fmt.Println(p.Name)
		}

	},
}

CmdGetPods gets pods.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL