machinefilters

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDeletionTimestamp

func HasDeletionTimestamp(machine *clusterv1.Machine) bool

HasDeletionTimestamp returns a filter to find all machines that have a deletion timestamp.

Types

type Func

type Func func(machine *clusterv1.Machine) bool

func And

func And(filters ...Func) Func

And returns a filter that returns true if all of the given filters returns true.

func HasAnnotationKey

func HasAnnotationKey(key string) Func

HasAnnotationKey returns a filter to find all machines that have the specified Annotation key present

func InFailureDomains

func InFailureDomains(failureDomains ...*string) Func

InFailureDomains returns a filter to find all machines in any of the given failure domains

func MatchesConfigurationHash

func MatchesConfigurationHash(configHash string) Func

MatchesConfigurationHash returns a filter to find all machines that match a given CritControlPlane configuration hash.

func Not

func Not(mf Func) Func

Not returns a filter that returns the opposite of the given filter.

func OlderThan

func OlderThan(t *metav1.Time) Func

OlderThan returns a filter to find all machines that have a CreationTimestamp earlier than the given time.

func Or

func Or(filters ...Func) Func

Or returns a filter that returns true if any of the given filters returns true.

func OwnedControlPlaneMachines

func OwnedControlPlaneMachines(controlPlaneName string) Func

OwnedControlPlaneMachines rerturns a filter to find all owned control plane machines. Usage: managementCluster.GetMachinesForCluster(ctx, cluster, machinefilters.OwnedControlPlaneMachines(controlPlane.Name))

Jump to

Keyboard shortcuts

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