type Tweak …
type TweakContainer …
func MakePod(name string, tweaks ...Tweak) *api.Pod { … }
func MakePodSpec(tweaks ...Tweak) api.PodSpec { … }
func SetNamespace(ns string) Tweak { … }
func SetResourceVersion(rv string) Tweak { … }
func SetContainers(containers ...api.Container) Tweak { … }
func SetInitContainers(containers ...api.Container) Tweak { … }
func SetEphemeralContainers(containers ...api.EphemeralContainer) Tweak { … }
func SetVolumes(volumes ...api.Volume) Tweak { … }
func MakeEmptyVolume(name string) api.Volume { … }
func SetNodeSelector(nodeSelector map[string]string) Tweak { … }
func SetNodeName(name string) Tweak { … }
func SetActiveDeadlineSeconds(deadline int64) Tweak { … }
func SetServiceAccountName(name string) Tweak { … }
func SetSecurityContext(ctx *api.PodSecurityContext) Tweak { … }
func SetAffinity(affinity *api.Affinity) Tweak { … }
func SetHostAliases(hostAliases ...api.HostAlias) Tweak { … }
func SetPriorityClassName(name string) Tweak { … }
func SetRuntimeClassName(name string) Tweak { … }
func SetOverhead(overhead api.ResourceList) Tweak { … }
func SetDNSPolicy(policy api.DNSPolicy) Tweak { … }
func SetDNSConfig(config *api.PodDNSConfig) Tweak { … }
func SetRestartPolicy(policy api.RestartPolicy) Tweak { … }
func SetTolerations(tolerations ...api.Toleration) Tweak { … }
func SetAnnotations(annos map[string]string) Tweak { … }
func SetLabels(annos map[string]string) Tweak { … }
func SetSchedulingGates(gates ...api.PodSchedulingGate) Tweak { … }
func SetTerminationGracePeriodSeconds(grace int64) Tweak { … }
func SetOS(name api.OSName) Tweak { … }
func SetStatus(status api.PodStatus) Tweak { … }
func SetResourceClaims(claims ...api.PodResourceClaim) Tweak { … }
func SetTopologySpreadConstraints(tsc ...api.TopologySpreadConstraint) Tweak { … }
func SetObjectMeta(objectMeta metav1.ObjectMeta) Tweak { … }
func MakeContainer(name string, tweaks ...TweakContainer) api.Container { … }
func SetContainerImage(image string) TweakContainer { … }
func MakeResourceRequirements(requests, limits map[string]string) api.ResourceRequirements { … }
func SetContainerResources(rr api.ResourceRequirements) TweakContainer { … }
func SetContainerPorts(ports ...api.ContainerPort) TweakContainer { … }
func SetContainerResizePolicy(policies ...api.ContainerResizePolicy) TweakContainer { … }
func SetContainerSecurityContext(ctx api.SecurityContext) TweakContainer { … }
func SetContainerRestartPolicy(policy api.ContainerRestartPolicy) TweakContainer { … }