testutils

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutils provides utility function for webhook testing.

Index

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL