objects

package
v0.4.10-3.2022042201 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PauseImage   = "gcr.io/google_containers/pause-amd64:3.0"
	PauseCommand = "/pause"
)

Variables

This section is empty.

Functions

func DumpEventsForPod

func DumpEventsForPod(events []corev1.Event, podNamespace, podName string) string

func EmptyMatchLabels

func EmptyMatchLabels() map[string]string

func GetEventsForPod

func GetEventsForPod(k8sCli *kubernetes.Clientset, podNamespace, podName string) ([]corev1.Event, error)

func IsOwnedBy

func IsOwnedBy(obj metav1.ObjectMeta, owner metav1.ObjectMeta) bool

func LogEventsForPod

func LogEventsForPod(k8sCli *kubernetes.Clientset, podNamespace, podName string) error

func NROName

func NROName() string

func NROObjectKey

func NROObjectKey() client.ObjectKey

func NewTestDaemonset

func NewTestDaemonset(podLabels map[string]string, nodeSelector map[string]string, namespace, name, image string, command, args []string) *appsv1.DaemonSet

func NewTestDaemonsetWithPodSpec

func NewTestDaemonsetWithPodSpec(podLabels map[string]string, nodeSelector map[string]string, namespace, name string, podSpec corev1.PodSpec) *appsv1.DaemonSet

func NewTestDeployment

func NewTestDeployment(replicas int32, podLabels map[string]string, nodeSelector map[string]string, namespace, name, image string, command, args []string) *appsv1.Deployment

func NewTestDeploymentWithPodSpec

func NewTestDeploymentWithPodSpec(replicas int32, podLabels map[string]string, nodeSelector map[string]string, namespace, name string, podSpec corev1.PodSpec) *appsv1.Deployment

func NewTestPodPause

func NewTestPodPause(namespace, name string) *corev1.Pod

func OpenshiftMatchLabels

func OpenshiftMatchLabels() map[string]string

func TestKC

func TestKC(matchLabels map[string]string) (*machineconfigv1.KubeletConfig, error)

func TestNRO

func TestNRO(matchLabels map[string]string) *nropv1alpha1.NUMAResourcesOperator

func TestNROScheduler

func TestNROScheduler() *nropv1alpha1.NUMAResourcesScheduler

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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