Documentation ¶
Index ¶
- func DumpEventsForPod(events []corev1.Event, podNamespace, podName string) string
- func DumpPODResourceRequirements(pod *corev1.Pod) string
- func EmptyMatchLabels() map[string]string
- func GetDaemonSetsOwnedBy(cli client.Client, objMeta metav1.ObjectMeta) ([]*appsv1.DaemonSet, error)
- func GetDeploymentOwnedBy(cli client.Client, objMeta metav1.ObjectMeta) ([]*appsv1.Deployment, error)
- func GetEventsForPod(k8sCli kubernetes.Interface, podNamespace, podName string) ([]corev1.Event, error)
- func GetLogsForPod(k8sCli *kubernetes.Clientset, podNamespace, podName, containerName string) (string, error)
- func IsOwnedBy(obj metav1.ObjectMeta, owner metav1.ObjectMeta) bool
- func LogEventsForPod(k8sCli kubernetes.Interface, podNamespace, podName string) error
- func NROObjectKey() client.ObjectKey
- func NROSchedObjectKey() client.ObjectKey
- func NewTestDaemonset(podLabels map[string]string, nodeSelector map[string]string, ...) *appsv1.DaemonSet
- func NewTestDaemonsetWithPodSpec(podLabels map[string]string, nodeSelector map[string]string, ...) *appsv1.DaemonSet
- func NewTestDeployment(replicas int32, podLabels map[string]string, nodeSelector map[string]string, ...) *appsv1.Deployment
- func NewTestDeploymentWithPodSpec(replicas int32, podLabels map[string]string, nodeSelector map[string]string, ...) *appsv1.Deployment
- func NewTestPodPause(namespace, name string) *corev1.Pod
- func NewTestPodPauseMultiContainer(namespace, name string, cntCount int) *corev1.Pod
- func NewTestReplicaSetWithPodSpec(replicas int32, podLabels map[string]string, nodeSelector map[string]string, ...) *appsv1.ReplicaSet
- func OpenshiftMatchLabels() map[string]string
- func TestKC(matchLabels map[string]string) (*machineconfigv1.KubeletConfig, error)
- func TestMCP() *machineconfigv1.MachineConfigPool
- func TestNRO(matchLabels map[string]string) *nropv1.NUMAResourcesOperator
- func TestNROScheduler() *nropv1.NUMAResourcesScheduler
- func ToYAML(obj interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpEventsForPod ¶
func EmptyMatchLabels ¶
func GetDaemonSetsOwnedBy ¶
func GetDeploymentOwnedBy ¶
func GetDeploymentOwnedBy(cli client.Client, objMeta metav1.ObjectMeta) ([]*appsv1.Deployment, error)
func GetEventsForPod ¶
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 NROSchedObjectKey ¶
func NewTestDaemonset ¶
func NewTestDeployment ¶
func NewTestPodPause ¶
func OpenshiftMatchLabels ¶
func TestKC ¶
func TestKC(matchLabels map[string]string) (*machineconfigv1.KubeletConfig, error)
func TestMCP ¶
func TestMCP() *machineconfigv1.MachineConfigPool
func TestNROScheduler ¶
func TestNROScheduler() *nropv1.NUMAResourcesScheduler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.