Documentation ¶
Index ¶
- Constants
- func GetLocalK8sDeps() (*kubernetes.Clientset, *rest.Config, error)
- type Client
- func (m *Client) GetPodLogs(ctx context.Context, namespace string, pods []v1.Pod) (map[string]string, error)
- func (m *Client) ListJobs(ctx context.Context, namespace, syncLabel string) (*batchV1.JobList, error)
- func (m *Client) ListPods(ctx context.Context, namespace, syncLabel string) (*v1.PodList, error)
- func (m *Client) LogNamespaceEvents(ctx context.Context, namespace string)
- func (m *Client) PrintPodLogs(ctx context.Context, namespace string, syncLabelValue string)
- func (m *Client) RemoveJobs(ctx context.Context, nsName string, syncLabelValue string) error
- func (m *Client) WaitUntilJobsComplete(ctx context.Context, namespace, syncLabelValue string, expectedJobsCount int) error
Constants ¶
View Source
const (
K8sStatePollInterval = 3 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func GetLocalK8sDeps ¶
func GetLocalK8sDeps() (*kubernetes.Clientset, *rest.Config, error)
GetLocalK8sDeps get local k8s context config
Types ¶
type Client ¶
type Client struct { ClientSet *kubernetes.Clientset RESTConfig *rest.Config // contains filtered or unexported fields }
High level k8s client
func (*Client) GetPodLogs ¶
func (*Client) LogNamespaceEvents ¶
func (*Client) PrintPodLogs ¶
func (*Client) RemoveJobs ¶
Click to show internal directories.
Click to hide internal directories.