Documentation ¶
Index ¶
- func GetImages(spec core.PodSpec) (images []string)
- func GetTerminatedContainersStatusesByPod(pod *core.Pod) map[string]*core.ContainerStateTerminated
- type Manager
- func (pw *Manager) GetContainerLogsByJob(ctx context.Context, job *batch.Job, container string) (io.ReadCloser, error)
- func (pw *Manager) GetImagePullSecrets(ctx context.Context, namespace string, spec core.PodSpec) ([]core.Secret, error)
- func (pw *Manager) GetPodByJob(ctx context.Context, job *batch.Job) (*core.Pod, error)
- func (pw *Manager) GetPodByName(ctx context.Context, namespace, name string) (*core.Pod, error)
- func (pw *Manager) GetPodLogs(ctx context.Context, pod *core.Pod, container string) (io.ReadCloser, error)
- func (pw *Manager) GetPodSpecByWorkload(ctx context.Context, workload kube.Object) (spec core.PodSpec, object meta.Object, err error)
- func (pw *Manager) GetTerminatedContainersStatusesByJob(ctx context.Context, job *batch.Job) (statuses map[string]*core.ContainerStateTerminated, err error)
- func (pw *Manager) LogRunnerErrors(ctx context.Context, job *batch.Job)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTerminatedContainersStatusesByPod ¶ added in v0.3.0
func GetTerminatedContainersStatusesByPod(pod *core.Pod) map[string]*core.ContainerStateTerminated
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewPodManager ¶
func NewPodManager(clientset kubernetes.Interface) *Manager
func (*Manager) GetContainerLogsByJob ¶ added in v0.2.2
func (*Manager) GetImagePullSecrets ¶ added in v0.3.0
func (pw *Manager) GetImagePullSecrets(ctx context.Context, namespace string, spec core.PodSpec) ([]core.Secret, error)
GetImagePullSecrets returns the union of image pull Secrets specified on the given PodSpec and image pull secrets added to the Service Account.
func (*Manager) GetPodByJob ¶
GetPodByJob gets the Pod controller by the specified Job.
func (*Manager) GetPodByName ¶
func (*Manager) GetPodLogs ¶
func (*Manager) GetPodSpecByWorkload ¶
func (pw *Manager) GetPodSpecByWorkload(ctx context.Context, workload kube.Object) (spec core.PodSpec, object meta.Object, err error)
GetPodSpecByWorkload returns a PodSpec of the specified Workload.
func (*Manager) GetTerminatedContainersStatusesByJob ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.