Documentation
¶
Index ¶
- Constants
- Variables
- func FooBar() map[string]string
- func IsRetryableAPIError(err error) bool
- func NewDefaultMutableFeatureGate() (featuregate.MutableFeatureGate, error)
- func NewExternalRemediationMachine() *unstructured.Unstructured
- func NewExternalRemediationTemplate() *unstructured.Unstructured
- func NewMachine(name string, nodeName string) *machinev1.Machine
- func NewMachineHealthCheck(name string) *machinev1.MachineHealthCheck
- func NewNode(name string, ready bool) *corev1.Node
- func NewSelector(labels map[string]string) *metav1.LabelSelector
- func NewSelectorFooBar() *metav1.LabelSelector
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 ¶
Functions ¶
func IsRetryableAPIError ¶
IsRetryableAPIError returns whether an API error is retryable or not. inspired by: k8s.io/kubernetes/test/utils.
func NewDefaultMutableFeatureGate ¶
func NewDefaultMutableFeatureGate() (featuregate.MutableFeatureGate, error)
func NewExternalRemediationMachine ¶
func NewExternalRemediationMachine() *unstructured.Unstructured
func NewExternalRemediationTemplate ¶
func NewExternalRemediationTemplate() *unstructured.Unstructured
func NewMachine ¶
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 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.
Click to show internal directories.
Click to hide internal directories.