Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubectl ¶
type Kubectl interface { // ShutDown downscales all statefulsets and deployments in the environment to 0 replicas ShutDown(env terra.Environment) error // DeletePVCs will delete all persistent volume claims in the environment DeletePVCs(env terra.Environment) error // PortForward runs `kubectl port-forward` and returns the forwarding local port, a callback to stop forwarding, and // a possible error if the command failed. // The targetResource should be of the form `[pods|deployment|replicaset|service]/<name>`, like `service/sam-postgres-service`. PortForward(targetRelease terra.Release, targetResource string, targetPort int) (int, func() error, error) }
Kubectl is a golang interface for executing `kubectl` commands
func NewKubectl ¶
func NewKubectl(shellRunner shell.Runner, thelmaRoot root.Root, tokenSource oauth2.TokenSource, gkeClient *container.ClusterManagerClient) (Kubectl, error)
Click to show internal directories.
Click to hide internal directories.