utils

package
v0.0.41100 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// RoleWorker contains the worker role
	RoleWorker = "worker"
	// RoleMaster contains the master role
	RoleMaster = "master"
)
View Source
const (
	// LabelRole contains the key for the role label
	LabelRole = "node-role.kubernetes.io"
	// LabelHostname contains the key for the hostname label
	LabelHostname = "kubernetes.io/hostname"
)
View Source
const (
	// NamespaceMachineConfigOperator contains the namespace of the machine-config-opereator
	NamespaceMachineConfigOperator = "openshift-machine-config-operator"
	// NamespaceTesting contains the name of the testing namespace
	NamespaceTesting = "performance-addon-operators-testing"
)
View Source
const (
	// ContainerMachineConfigDaemon contains the name of the machine-config-daemon container
	ContainerMachineConfigDaemon = "machine-config-daemon"
)
View Source
const (
	// FilePathKubeletConfig contains the kubelet.conf file path
	FilePathKubeletConfig = "/etc/kubernetes/kubelet.conf"
)

Variables

View Source
var NodeSelectorLabels map[string]string

NodeSelectorLabels contains the node labels the perfomance profile should match

View Source
var NodesSelector string

NodesSelector represents the label selector used to filter impacted nodes.

View Source
var PerformanceProfileName string

PerformanceProfileName contains the name of the PerformanceProfile created for tests or an existing profile when discover mode is enabled

View Source
var ProfileNotFound bool

ProfileNotFound is true when discovery mode is enabled and no valid profile was found

View Source
var RoleWorkerCNF string

RoleWorkerCNF contains role name of cnf worker nodes

Functions

func BeforeAll

func BeforeAll(fn func())

func ExecAndLogCommand

func ExecAndLogCommand(name string, arg ...string) ([]byte, error)

func ExecAndLogCommandWithStderr

func ExecAndLogCommandWithStderr(name string, arg ...string) ([]byte, []byte, error)

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