Documentation ¶
Overview ¶
Package testutils provides utility function for webhook testing.
Index ¶
- func GetImposedNodeSelector(strategy offv1alpha1.PodOffloadingStrategyType) corev1.NodeSelector
- func GetMergedNodeSelector(strategy offv1alpha1.PodOffloadingStrategyType) corev1.NodeSelector
- func GetNamespaceOffloading(strategy offv1alpha1.PodOffloadingStrategyType) offv1alpha1.NamespaceOffloading
- func GetPodNodeSelector() corev1.NodeSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImposedNodeSelector ¶
func GetImposedNodeSelector(strategy offv1alpha1.PodOffloadingStrategyType) corev1.NodeSelector
GetImposedNodeSelector gets the right imposedSelector according to the specified strategy.
func GetMergedNodeSelector ¶
func GetMergedNodeSelector(strategy offv1alpha1.PodOffloadingStrategyType) corev1.NodeSelector
GetMergedNodeSelector gets the right mergedNodeSelector according to the specified strategy.
func GetNamespaceOffloading ¶
func GetNamespaceOffloading(strategy offv1alpha1.PodOffloadingStrategyType) offv1alpha1.NamespaceOffloading
GetNamespaceOffloading gets the right NamespaceOffloading according to the specified strategy.
func GetPodNodeSelector ¶
func GetPodNodeSelector() corev1.NodeSelector
GetPodNodeSelector gets a generic Pod NodeSelector.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.