testing

package
v0.2.1-0...-e2b4537 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// Namespace contains the default namespace for machine-api components
	Namespace = "openshift-machine-api"
	// MachineAnnotationKey contains default machine node annotation
	MachineAnnotationKey = "machine.openshift.io/machine"
)

Variables

View Source
var (
	// KnownDate contains date that can be used under tests
	KnownDate = metav1.Time{Time: time.Date(1985, 06, 03, 0, 0, 0, 0, time.Local)}
)

Functions

func FooBar

func FooBar() map[string]string

FooBar returns foo:bar map that can be used as default label

func NewExternalRemediationMachine

func NewExternalRemediationMachine() *unstructured.Unstructured

func NewExternalRemediationTemplate

func NewExternalRemediationTemplate() *unstructured.Unstructured

func NewMachine

func NewMachine(name string, nodeName string) *machinev1.Machine

NewMachine returns new machine object that can be used for testing

func NewMachineHealthCheck

func NewMachineHealthCheck(name string) *machinev1.MachineHealthCheck

NewMachineHealthCheck returns new MachineHealthCheck object that can be used for testing

func NewNode

func NewNode(name string, ready bool) *corev1.Node

NewNode returns new node object that can be used for testing

func NewSelector

func NewSelector(labels map[string]string) *metav1.LabelSelector

NewSelector returns new LabelSelector

func NewSelectorFooBar

func NewSelectorFooBar() *metav1.LabelSelector

NewSelectorFooBar returns new foo:bar label selector

Types

This section is empty.

Jump to

Keyboard shortcuts

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