utils

package
v0.0.0-...-729cd59 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 13 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 (
	// NodeInspectorName contains the name of node inspector name
	NodeInspectorName = "node-inspector"
	// NodeInspectorNamespace contains the name of node inspector namespace
	NodeInspectorNamespace = "node-inspector-ns"
)
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"
)
View Source
const (
	// LogsFetchDuration represents how much in the past we need to go when fetching the pod logs
	LogsFetchDuration = 10 * time.Minute
)
View Source
const SkipBzChecksEnvVar = "NO_BZ_CHECKS"

Variables

View Source
var MustGatherDir string

MustGatherDir represents Mustgather directory created using oc adm mustgather

View Source
var NTOImage string

NtoImage represents NTO Image location which is either quay.io or any other internal registry

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 CustomBeforeAll

func CustomBeforeAll(fn func())

func ExecAndLogCommand

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

func ExecAndLogCommandWithStderr

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

func KnownIssueBugzilla

func KnownIssueBugzilla(bugId int)

Check status of an issue in Bugzilla and skip the test when the issue is not yet resolved (Verified or Closed)

func KnownIssueJira

func KnownIssueJira(key string)

Check status of an issue in Jira and skip the test when the issue is not yet resolved (Verified or Closed)

func ToString

func ToString(b []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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