Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CheckAllKubeSystemPodsReady() (bool, error)
- func (c *Client) CheckAllNodeReady() (bool, error)
- func (c *Client) GetNotReadyPodEvent() (map[string][]EventPod, error)
- func (c *Client) GetPodEvents(namespace, podName string) ([]v1.Event, error)
- func (c *Client) GetPodLog(namespace, podName string) (string, error)
- func (c *Client) ListAllNamespacesPods() ([]*NamespacePod, error)
- func (c *Client) ListNodeIPByLabel(label string) ([]net.IP, error)
- func (c *Client) ListNodes() (*v1.NodeList, error)
- func (c *Client) ListNodesByLabel(label string) (*v1.NodeList, error)
- func (c *Client) OutputNotReadyPodInfo() error
- type EventPod
- type NamespacePod
Constants ¶
View Source
const ( ReadyStatus = "Ready" TRUE = "True" FALSE = "False" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewK8sClient ¶
func NewK8sClient(sshClient *testhelper.SSHClient) (*Client, error)
func (*Client) CheckAllKubeSystemPodsReady ¶
Check if all pods of kube-system are ready
func (*Client) CheckAllNodeReady ¶
Check if all nodes are ready
func (*Client) GetNotReadyPodEvent ¶
func (*Client) GetPodEvents ¶
func (*Client) ListAllNamespacesPods ¶
func (c *Client) ListAllNamespacesPods() ([]*NamespacePod, error)
func (*Client) ListNodeIPByLabel ¶
func (*Client) ListNodesByLabel ¶
func (*Client) OutputNotReadyPodInfo ¶
If exist pod not ready, show pod events and logs
Click to show internal directories.
Click to hide internal directories.