cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListPods

func ListPods(c kubernetes.Interface, namespace, selector string) (*v1.PodList, error)

Returns the list of currently scheduled or running pods in `namespace` with the given selector

func NewCmdSshProxy

func NewCmdSshProxy(streams genericclioptions.IOStreams) *cobra.Command

NewCmdSshProxy provides a cobra command wrapping ProxyOptions

func WaitForPodBySelectorRunning

func WaitForPodBySelectorRunning(c kubernetes.Interface, namespace, selector string, timeout int) error

Wait up to timeout seconds for all pods in 'namespace' with given 'selector' to enter running state. Returns an error if no pods are found or not all discovered pods enter running state.

Types

type ProxyOptions

type ProxyOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ProxyOptions provides information required to create a proxy pod in the current context

func NewProxyOptions

func NewProxyOptions(streams genericclioptions.IOStreams) *ProxyOptions

NewProxyOptions provides an instance of ProxyOptions with default values

func (*ProxyOptions) Complete

func (o *ProxyOptions) Complete(cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*ProxyOptions) Run

func (o *ProxyOptions) Run(args []string) error

Opens connection through pod

func (*ProxyOptions) Validate

func (o *ProxyOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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