pod

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePod

func DeletePod(ns, name string, cl client.Client) error

func SetPodReadinessGate

func SetPodReadinessGate(ns, name string, cl client.Client) error

Types

type Pod

type Pod struct {
	*corev1.Pod
	*workload.Base
}

Pod is the wrapper for corev1.Pod type.

func FromPod

func FromPod(p *corev1.Pod) *Pod

func (*Pod) ContainersReady

func (p *Pod) ContainersReady() bool

For a Pod that uses custom conditions, that Pod is evaluated to be ready only when both the following statements apply: All containers in the Pod are ready. All conditions specified in readinessGates are True. When a Pod's containers are Ready but at least one custom condition is missing or False, the kubelet sets the Pod's condition to ContainersReady. See details here: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-readiness-status

func (*Pod) Failed

func (p *Pod) Failed() bool

func (*Pod) GetAppID

func (p *Pod) GetAppID() int

func (*Pod) GetContainers

func (p *Pod) GetContainers() []corev1.Container

func (*Pod) GetGroupID

func (p *Pod) GetGroupID() int

func (*Pod) GetHostIP

func (p *Pod) GetHostIP() string

func (*Pod) GetInstanceName

func (p *Pod) GetInstanceName() string

func (*Pod) GetPhase

func (p *Pod) GetPhase() corev1.PodPhase

func (*Pod) GetPodIP

func (p *Pod) GetPodIP() string

func (*Pod) GetUpdateRevision

func (p *Pod) GetUpdateRevision() string

func (*Pod) PodReady

func (p *Pod) PodReady() bool

func (*Pod) Ready

func (p *Pod) Ready() bool

func (*Pod) Restarted

func (p *Pod) Restarted() bool

func (*Pod) String

func (p *Pod) String() string

func (*Pod) Unwrap

func (p *Pod) Unwrap() *corev1.Pod

Unwrap returns the appsv1.Pod object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL