var zero …
type NodeSelectorWrapper …
func MakeNodeSelector() *NodeSelectorWrapper { … }
type NodeSelectorType …
const NodeSelectorTypeMatchExpressions …
const NodeSelectorTypeMatchFields …
func (s *NodeSelectorWrapper) In(key string, vals []string, t NodeSelectorType) *NodeSelectorWrapper { … }
func (s *NodeSelectorWrapper) NotIn(key string, vals []string) *NodeSelectorWrapper { … }
func (s *NodeSelectorWrapper) Obj() *v1.NodeSelector { … }
type LabelSelectorWrapper …
func MakeLabelSelector() *LabelSelectorWrapper { … }
func (s *LabelSelectorWrapper) Label(k, v string) *LabelSelectorWrapper { … }
func (s *LabelSelectorWrapper) In(key string, vals []string) *LabelSelectorWrapper { … }
func (s *LabelSelectorWrapper) NotIn(key string, vals []string) *LabelSelectorWrapper { … }
func (s *LabelSelectorWrapper) Exists(k string) *LabelSelectorWrapper { … }
func (s *LabelSelectorWrapper) NotExist(k string) *LabelSelectorWrapper { … }
func (s *LabelSelectorWrapper) Obj() *metav1.LabelSelector { … }
type ContainerWrapper …
func MakeContainer() *ContainerWrapper { … }
func (c *ContainerWrapper) Obj() v1.Container { … }
func (c *ContainerWrapper) Name(n string) *ContainerWrapper { … }
func (c *ContainerWrapper) Image(image string) *ContainerWrapper { … }
func (c *ContainerWrapper) HostPort(hostPort int32) *ContainerWrapper { … }
func (c *ContainerWrapper) ContainerPort(ports []v1.ContainerPort) *ContainerWrapper { … }
func (c *ContainerWrapper) Resources(resMap map[v1.ResourceName]string) *ContainerWrapper { … }
func (c *ContainerWrapper) ResourceRequests(reqMap map[v1.ResourceName]string) *ContainerWrapper { … }
func (c *ContainerWrapper) ResourceLimits(limMap map[v1.ResourceName]string) *ContainerWrapper { … }
func (c *ContainerWrapper) RestartPolicy(restartPolicy v1.ContainerRestartPolicy) *ContainerWrapper { … }
type PodDisruptionBudgetWrapper …
func MakePDB() *PodDisruptionBudgetWrapper { … }
func (p *PodDisruptionBudgetWrapper) Obj() *policy.PodDisruptionBudget { … }
func (p *PodDisruptionBudgetWrapper) Name(name string) *PodDisruptionBudgetWrapper { … }
func (p *PodDisruptionBudgetWrapper) Namespace(namespace string) *PodDisruptionBudgetWrapper { … }
func (p *PodDisruptionBudgetWrapper) MinAvailable(minAvailable string) *PodDisruptionBudgetWrapper { … }
func (p *PodDisruptionBudgetWrapper) MatchLabel(key, value string) *PodDisruptionBudgetWrapper { … }
func (p *PodDisruptionBudgetWrapper) DisruptionsAllowed(disruptionsAllowed int32) *PodDisruptionBudgetWrapper { … }
type PodWrapper …
func MakePod() *PodWrapper { … }
func (p *PodWrapper) Obj() *v1.Pod { … }
func (p *PodWrapper) Name(s string) *PodWrapper { … }
func (p *PodWrapper) UID(s string) *PodWrapper { … }
func (p *PodWrapper) SchedulerName(s string) *PodWrapper { … }
func (p *PodWrapper) Namespace(s string) *PodWrapper { … }
func (p *PodWrapper) OwnerReference(name string, gvk schema.GroupVersionKind) *PodWrapper { … }
func (p *PodWrapper) Container(s string) *PodWrapper { … }
func (p *PodWrapper) Containers(containers []v1.Container) *PodWrapper { … }
func (p *PodWrapper) PodResourceClaims(podResourceClaims ...v1.PodResourceClaim) *PodWrapper { … }
func (p *PodWrapper) ResourceClaimStatuses(resourceClaimStatuses ...v1.PodResourceClaimStatus) *PodWrapper { … }
func (p *PodWrapper) Priority(val int32) *PodWrapper { … }
func (p *PodWrapper) CreationTimestamp(t metav1.Time) *PodWrapper { … }
func (p *PodWrapper) Terminating() *PodWrapper { … }
func (p *PodWrapper) ZeroTerminationGracePeriod() *PodWrapper { … }
func (p *PodWrapper) Node(s string) *PodWrapper { … }
func (p *PodWrapper) NodeSelector(m map[string]string) *PodWrapper { … }
func (p *PodWrapper) NodeAffinityIn(key string, vals []string, t NodeSelectorType) *PodWrapper { … }
func (p *PodWrapper) NodeAffinityNotIn(key string, vals []string) *PodWrapper { … }
func (p *PodWrapper) StartTime(t metav1.Time) *PodWrapper { … }
func (p *PodWrapper) NominatedNodeName(n string) *PodWrapper { … }
func (p *PodWrapper) Phase(phase v1.PodPhase) *PodWrapper { … }
func (p *PodWrapper) Condition(t v1.PodConditionType, s v1.ConditionStatus, r string) *PodWrapper { … }
func (p *PodWrapper) Conditions(conditions []v1.PodCondition) *PodWrapper { … }
func (p *PodWrapper) Toleration(key string) *PodWrapper { … }
func (p *PodWrapper) HostPort(port int32) *PodWrapper { … }
func (p *PodWrapper) ContainerPort(ports []v1.ContainerPort) *PodWrapper { … }
func (p *PodWrapper) PVC(name string) *PodWrapper { … }
func (p *PodWrapper) Volume(volume v1.Volume) *PodWrapper { … }
func (p *PodWrapper) Volumes(volumes []v1.Volume) *PodWrapper { … }
func (p *PodWrapper) SchedulingGates(gates []string) *PodWrapper { … }
type PodAffinityKind …
const NilPodAffinity …
const PodAffinityWithRequiredReq …
const PodAffinityWithPreferredReq …
const PodAffinityWithRequiredPreferredReq …
const PodAntiAffinityWithRequiredReq …
const PodAntiAffinityWithPreferredReq …
const PodAntiAffinityWithRequiredPreferredReq …
func (p *PodWrapper) PodAffinity(topologyKey string, labelSelector *metav1.LabelSelector, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAntiAffinity(topologyKey string, labelSelector *metav1.LabelSelector, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAntiAffinityExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAffinityNotExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAntiAffinityNotExists(labelKey, topologyKey string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAffinityIn(labelKey, topologyKey string, vals []string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAntiAffinityIn(labelKey, topologyKey string, vals []string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAffinityNotIn(labelKey, topologyKey string, vals []string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) PodAntiAffinityNotIn(labelKey, topologyKey string, vals []string, kind PodAffinityKind) *PodWrapper { … }
func (p *PodWrapper) SpreadConstraint(maxSkew int, tpKey string, mode v1.UnsatisfiableConstraintAction, selector *metav1.LabelSelector, minDomains *int32, nodeAffinityPolicy, nodeTaintsPolicy *v1.NodeInclusionPolicy, matchLabelKeys []string) *PodWrapper { … }
func (p *PodWrapper) Label(k, v string) *PodWrapper { … }
func (p *PodWrapper) Labels(labels map[string]string) *PodWrapper { … }
func (p *PodWrapper) Annotation(key, value string) *PodWrapper { … }
func (p *PodWrapper) Annotations(annotations map[string]string) *PodWrapper { … }
func (p *PodWrapper) Res(resMap map[v1.ResourceName]string) *PodWrapper { … }
func (p *PodWrapper) Req(reqMap map[v1.ResourceName]string) *PodWrapper { … }
func (p *PodWrapper) Lim(limMap map[v1.ResourceName]string) *PodWrapper { … }
func (p *PodWrapper) InitReq(resMap map[v1.ResourceName]string) *PodWrapper { … }
func (p *PodWrapper) SidecarReq(resMap map[v1.ResourceName]string) *PodWrapper { … }
func (p *PodWrapper) PreemptionPolicy(policy v1.PreemptionPolicy) *PodWrapper { … }
func (p *PodWrapper) Overhead(rl v1.ResourceList) *PodWrapper { … }
type NodeWrapper …
func MakeNode() *NodeWrapper { … }
func (n *NodeWrapper) Obj() *v1.Node { … }
func (n *NodeWrapper) Name(s string) *NodeWrapper { … }
func (n *NodeWrapper) UID(s string) *NodeWrapper { … }
func (n *NodeWrapper) Label(k, v string) *NodeWrapper { … }
func (n *NodeWrapper) Annotation(k, v string) *NodeWrapper { … }
func (n *NodeWrapper) Capacity(resources map[v1.ResourceName]string) *NodeWrapper { … }
func (n *NodeWrapper) Images(images map[string]int64) *NodeWrapper { … }
func (n *NodeWrapper) Taints(taints []v1.Taint) *NodeWrapper { … }
func (n *NodeWrapper) Unschedulable(unschedulable bool) *NodeWrapper { … }
func (n *NodeWrapper) Condition(typ v1.NodeConditionType, status v1.ConditionStatus, message, reason string) *NodeWrapper { … }
type PersistentVolumeClaimWrapper …
func MakePersistentVolumeClaim() *PersistentVolumeClaimWrapper { … }
func (p *PersistentVolumeClaimWrapper) Obj() *v1.PersistentVolumeClaim { … }
func (p *PersistentVolumeClaimWrapper) Name(s string) *PersistentVolumeClaimWrapper { … }
func (p *PersistentVolumeClaimWrapper) Namespace(s string) *PersistentVolumeClaimWrapper { … }
func (p *PersistentVolumeClaimWrapper) Annotation(key, value string) *PersistentVolumeClaimWrapper { … }
func (p *PersistentVolumeClaimWrapper) VolumeName(name string) *PersistentVolumeClaimWrapper { … }
func (p *PersistentVolumeClaimWrapper) AccessModes(accessModes []v1.PersistentVolumeAccessMode) *PersistentVolumeClaimWrapper { … }
func (p *PersistentVolumeClaimWrapper) Resources(resources v1.VolumeResourceRequirements) *PersistentVolumeClaimWrapper { … }
type PersistentVolumeWrapper …
func MakePersistentVolume() *PersistentVolumeWrapper { … }
func (p *PersistentVolumeWrapper) Obj() *v1.PersistentVolume { … }
func (p *PersistentVolumeWrapper) Name(s string) *PersistentVolumeWrapper { … }
func (p *PersistentVolumeWrapper) AccessModes(accessModes []v1.PersistentVolumeAccessMode) *PersistentVolumeWrapper { … }
func (p *PersistentVolumeWrapper) Capacity(capacity v1.ResourceList) *PersistentVolumeWrapper { … }
func (p *PersistentVolumeWrapper) HostPathVolumeSource(src *v1.HostPathVolumeSource) *PersistentVolumeWrapper { … }
func (p *PersistentVolumeWrapper) NodeAffinityIn(key string, vals []string) *PersistentVolumeWrapper { … }
func (p *PersistentVolumeWrapper) Labels(labels map[string]string) *PersistentVolumeWrapper { … }
func (p *PersistentVolumeWrapper) Label(k, v string) *PersistentVolumeWrapper { … }
type ResourceClaimWrapper …
func MakeResourceClaim() *ResourceClaimWrapper { … }
func FromResourceClaim(other *resourceapi.ResourceClaim) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) Obj() *resourceapi.ResourceClaim { … }
func (wrapper *ResourceClaimWrapper) Name(s string) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) UID(s string) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) Namespace(s string) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) OwnerReference(name, uid string, gvk schema.GroupVersionKind) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) Request(deviceClassName string) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) Allocation(allocation *resourceapi.AllocationResult) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) Deleting(time metav1.Time) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) ReservedFor(consumers ...resourceapi.ResourceClaimConsumerReference) *ResourceClaimWrapper { … }
func (wrapper *ResourceClaimWrapper) ReservedForPod(podName string, podUID types.UID) *ResourceClaimWrapper { … }
type ResourceSliceWrapper …
func MakeResourceSlice(nodeName, driverName string) *ResourceSliceWrapper { … }
func FromResourceSlice(other *resourceapi.ResourceSlice) *ResourceSliceWrapper { … }
func (wrapper *ResourceSliceWrapper) Obj() *resourceapi.ResourceSlice { … }
func (wrapper *ResourceSliceWrapper) Devices(names ...string) *ResourceSliceWrapper { … }
func (wrapper *ResourceSliceWrapper) Device(name string, attrs map[resourceapi.QualifiedName]resourceapi.DeviceAttribute) *ResourceSliceWrapper { … }
type StorageClassWrapper …
func MakeStorageClass() *StorageClassWrapper { … }
func (s *StorageClassWrapper) Obj() *storagev1.StorageClass { … }
func (s *StorageClassWrapper) Name(n string) *StorageClassWrapper { … }
func (s *StorageClassWrapper) VolumeBindingMode(mode storagev1.VolumeBindingMode) *StorageClassWrapper { … }
func (s *StorageClassWrapper) Provisioner(p string) *StorageClassWrapper { … }