Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListPods ¶
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