Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoPreferredAddress is returned when a node has no preferred address. ErrNoPreferredAddress = errors.New("node has no preferred address") // ErrNoRoutableAddress is returned when a node has preferred addresses, but none of them routable. ErrNoRoutableAddress = errors.New("node has no routable address") )
Functions ¶
Types ¶
type Config ¶
type Config struct { Login string NodeName string NodeSelector labels.Selector genopts.IOStreams // contains filtered or unexported fields }
Config holds configuration for kubectl-ssh.
func (*Config) Clientset ¶
func (c *Config) Clientset() (*kubernetes.Clientset, error)
Clientset creates a new client based on the REST client configuration inferred from the environment or set through flags.
Click to show internal directories.
Click to hide internal directories.