testutils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 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