Documentation ¶
Index ¶
- func AffinityForNodeSelector(namespace string, required bool, antiLabels, selector map[string]string) *corev1.Affinity
- func AntiAffinityForPod(namespace string, antiLabels map[string]string) *corev1.PodAntiAffinity
- func ResourceRequirement(spec v1alpha1.ContainerSpec, defaultRequests ...corev1.ResourceRequirements) corev1.ResourceRequirements
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffinityForNodeSelector ¶
func AffinityForNodeSelector(namespace string, required bool, antiLabels, selector map[string]string) *corev1.Affinity
AffinityForNodeSelector creates an Affinity for NodeSelector Externally we use NodeSelector for simplicity, while internally we convert it to affinity which can express complex scheduling rules
func AntiAffinityForPod ¶
func AntiAffinityForPod(namespace string, antiLabels map[string]string) *corev1.PodAntiAffinity
AntiAffinityForPod creates a PodAntiAffinity with antiLabels
func ResourceRequirement ¶
func ResourceRequirement(spec v1alpha1.ContainerSpec, defaultRequests ...corev1.ResourceRequirements) corev1.ResourceRequirements
ResourceRequirement creates ResourceRequirements for MemberSpec Optionally pass in a default value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.