Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodesClient ¶
type NodesClient struct {
// contains filtered or unexported fields
}
NodesClient contains interface for making requests to kubernetes client.
func Client ¶
func Client(kube kubernetes.Interface, logger *zap.SugaredLogger) *NodesClient
Client creates a new nodes client
func (*NodesClient) GuessNodeExternalAddress ¶
func (n *NodesClient) GuessNodeExternalAddress(node *corev1.Node) *corev1.NodeAddress
GuessNodeExternalAddress tries to guess external address of a node
func (*NodesClient) RandomWorkerNode ¶
func (n *NodesClient) RandomWorkerNode() (*corev1.Node, error)
RandomWorkerNode gets a worker node randomly
Click to show internal directories.
Click to hide internal directories.