Documentation
¶
Index ¶
- func DeletePod(ns, name string, cl client.Client) error
- func SetPodReadinessGate(ns, name string, cl client.Client) error
- type Pod
- func (p *Pod) ContainersReady() bool
- func (p *Pod) Failed() bool
- func (p *Pod) GetAppID() int
- func (p *Pod) GetContainers() []corev1.Container
- func (p *Pod) GetGroupID() int
- func (p *Pod) GetHostIP() string
- func (p *Pod) GetInstanceName() string
- func (p *Pod) GetPhase() corev1.PodPhase
- func (p *Pod) GetPodIP() string
- func (p *Pod) GetUpdateRevision() string
- func (p *Pod) PodReady() bool
- func (p *Pod) Ready() bool
- func (p *Pod) Restarted() bool
- func (p *Pod) String() string
- func (p *Pod) Unwrap() *corev1.Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pod ¶
Pod is the wrapper for corev1.Pod type.
func (*Pod) ContainersReady ¶
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) GetContainers ¶
func (*Pod) GetGroupID ¶
func (*Pod) GetInstanceName ¶
func (*Pod) GetUpdateRevision ¶
Click to show internal directories.
Click to hide internal directories.