Documentation
¶
Index ¶
- type Pod
- func (pod *Pod) AddGate(gateName string)
- func (pod *Pod) ContainerNameFor(containerID string) (string, error)
- func (pod *Pod) Ctx() context.Context
- func (pod *Pod) EnsureAndIncrementLabel(label string)
- func (pod *Pod) EnsureAnnotation(annotation string, value string)
- func (pod *Pod) EnsureLabel(label string, value string)
- func (pod *Pod) EnsureNoLabel(label string)
- func (pod *Pod) HasControlPlaneNodeSelector() bool
- func (pod *Pod) HasGate(gateName string) bool
- func (pod *Pod) IsFromDaemonSet() bool
- func (pod *Pod) PodObject() *corev1.Pod
- func (pod *Pod) PublishEvent(eventType, reason, message string)
- func (pod *Pod) Recorder() record.EventRecorder
- func (pod *Pod) RemoveGate(gateName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pod ¶
func (*Pod) EnsureAndIncrementLabel ¶
EnsureAndIncrementLabel ensures that the pod has the given label with the given value. If the label is already set, it increments the value.
func (*Pod) EnsureAnnotation ¶
EnsureAnnotation ensures that the pod has the given annotation with the given value.
func (*Pod) EnsureLabel ¶
EnsureLabel ensures that the pod has the given label with the given value.
func (*Pod) EnsureNoLabel ¶
EnsureNoLabel ensures that the pod does not have the given label.
func (*Pod) HasControlPlaneNodeSelector ¶
HasControlPlaneNodeSelector returns true if the pod has a node selector that matches the control plane nodes.
func (*Pod) IsFromDaemonSet ¶
IsFromDaemonSet returns true if the pod is from a daemonSet.
func (*Pod) PublishEvent ¶
PublishEvent publishes an event for the pod using the EventRecorder.
func (*Pod) Recorder ¶
func (pod *Pod) Recorder() record.EventRecorder
Recorder returns the EventRecorder associated with the Pod.
func (*Pod) RemoveGate ¶
RemoveGate removes a scheduling gate from the pod if it exists.