utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PollIntervalShort  = 2 * time.Second
	PollIntervalMedium = 10 * time.Second
	PollIntervalLong   = 20 * time.Second
	// ResourceCreationTimeout is the number of seconds till the controller waits
	// for the resource creation to complete
	ResourceCreationTimeout = 120 * time.Second
	// Windows Container Images are much larger in size and pulling them the first
	// time takes much longer, so have higher timeout for Windows Pod to be Ready
	WindowsPodsCreationTimeout = 240 * time.Second
)
View Source
const (
	ResourceNamePrefix = "vpc-resource-controller-integration-"
)

Variables

This section is empty.

Functions

func NamespacedName

func NamespacedName(obj metav1.Object) types.NamespacedName

NamespacedName returns the namespaced name for k8s objects

func RetrieveTestedMetricValue added in v1.1.4

func RetrieveTestedMetricValue(rawData []byte, testedMetricName string, testedMetricType dto.MetricType) ([]*dto.Metric, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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