Documentation ¶
Index ¶
- type PodWrapper
- func (p *PodWrapper) Annotation(key, content string) *PodWrapper
- func (p *PodWrapper) Clone() *PodWrapper
- func (p *PodWrapper) Image(image string, args []string) *PodWrapper
- func (p *PodWrapper) KueueFinalizer() *PodWrapper
- func (p *PodWrapper) KueueSchedulingGate() *PodWrapper
- func (p *PodWrapper) Label(k, v string) *PodWrapper
- func (p *PodWrapper) NodeSelector(k, v string) *PodWrapper
- func (p *PodWrapper) Obj() *corev1.Pod
- func (p *PodWrapper) OwnerReference(ownerName string, ownerGVK schema.GroupVersionKind) *PodWrapper
- func (p *PodWrapper) ParentWorkload(parentWorkload string) *PodWrapper
- func (p *PodWrapper) Queue(queue string) *PodWrapper
- func (p *PodWrapper) Request(r corev1.ResourceName, v string) *PodWrapper
- func (p *PodWrapper) StatusConditions(conditions ...corev1.PodCondition) *PodWrapper
- func (p *PodWrapper) StatusPhase(ph corev1.PodPhase) *PodWrapper
- func (p *PodWrapper) UID(uid string) *PodWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodWrapper ¶
PodWrapper wraps a Pod.
func MakePod ¶
func MakePod(name, ns string) *PodWrapper
MakePod creates a wrapper for a pod with a single container.
func (*PodWrapper) Annotation ¶
func (p *PodWrapper) Annotation(key, content string) *PodWrapper
func (*PodWrapper) Clone ¶
func (p *PodWrapper) Clone() *PodWrapper
Clone returns deep copy of the Pod.
func (*PodWrapper) Image ¶
func (p *PodWrapper) Image(image string, args []string) *PodWrapper
func (*PodWrapper) KueueFinalizer ¶
func (p *PodWrapper) KueueFinalizer() *PodWrapper
KueueFinalizer adds kueue finalizer to the Pod
func (*PodWrapper) KueueSchedulingGate ¶
func (p *PodWrapper) KueueSchedulingGate() *PodWrapper
KueueSchedulingGate adds kueue scheduling gate to the Pod
func (*PodWrapper) Label ¶
func (p *PodWrapper) Label(k, v string) *PodWrapper
Label sets the label of the Pod
func (*PodWrapper) NodeSelector ¶
func (p *PodWrapper) NodeSelector(k, v string) *PodWrapper
NodeSelector adds a node selector to the Pod.
func (*PodWrapper) OwnerReference ¶
func (p *PodWrapper) OwnerReference(ownerName string, ownerGVK schema.GroupVersionKind) *PodWrapper
OwnerReference adds a ownerReference to the default container.
func (*PodWrapper) ParentWorkload ¶
func (p *PodWrapper) ParentWorkload(parentWorkload string) *PodWrapper
ParentWorkload sets the parent-workload annotation
func (*PodWrapper) Queue ¶
func (p *PodWrapper) Queue(queue string) *PodWrapper
Queue updates the queue name of the Pod
func (*PodWrapper) Request ¶
func (p *PodWrapper) Request(r corev1.ResourceName, v string) *PodWrapper
Request adds a resource request to the default container.
func (*PodWrapper) StatusConditions ¶
func (p *PodWrapper) StatusConditions(conditions ...corev1.PodCondition) *PodWrapper
StatusConditions updates status conditions of the Pod.
func (*PodWrapper) StatusPhase ¶
func (p *PodWrapper) StatusPhase(ph corev1.PodPhase) *PodWrapper
StatusPhase updates status phase of the Pod.
func (*PodWrapper) UID ¶
func (p *PodWrapper) UID(uid string) *PodWrapper
UID updates the uid of the Pod.