objects

package
v0.4.14-0.2023082101 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpEventsForPod

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

func DumpPODResourceRequirements

func DumpPODResourceRequirements(pod *corev1.Pod) string

func EmptyMatchLabels

func EmptyMatchLabels() map[string]string

func GetDaemonSetsOwnedBy

func GetDaemonSetsOwnedBy(cli client.Client, objMeta metav1.ObjectMeta) ([]*appsv1.DaemonSet, error)

func GetEventsForPod

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

func GetLogsForPod

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

func IsOwnedBy

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

func LogEventsForPod

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

func NROObjectKey

func NROObjectKey() client.ObjectKey

func NROSchedObjectKey

func NROSchedObjectKey() 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 NewTestReplicaSetWithPodSpec

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

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) *nropv1.NUMAResourcesOperator

func TestNROScheduler

func TestNROScheduler() *nropv1.NUMAResourcesScheduler

func ToYAML

func ToYAML(obj interface{}) string

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