Documentation ¶
Index ¶
- Constants
- func BuildOwnerToMachineSetsMap(machineSets []machinev1alpha1.MachineSet) map[string][]machinev1alpha1.MachineSet
- func BuildOwnerToMachinesMap(machines []machinev1alpha1.Machine) map[string][]machinev1alpha1.Machine
- func GetMachineSetWithMachineClass(machineDeploymentName, machineClassName string, ...) *machinev1alpha1.MachineSet
- func ReportFailedMachines(status machinev1alpha1.MachineDeploymentStatus) error
Constants ¶
View Source
const ( // MachineSetKind is the kind of the owner reference of a machine set MachineSetKind = "MachineSet" // MachineDeploymentKind is the kind of the owner reference of a machine deployment MachineDeploymentKind = "MachineDeployment" )
Variables ¶
This section is empty.
Functions ¶
func BuildOwnerToMachineSetsMap ¶
func BuildOwnerToMachineSetsMap(machineSets []machinev1alpha1.MachineSet) map[string][]machinev1alpha1.MachineSet
BuildOwnerToMachineSetsMap builds a map from a slice of machinev1alpha1.MachineSet, that maps the owner reference to a slice of MachineSets with the same owner reference
func BuildOwnerToMachinesMap ¶
func BuildOwnerToMachinesMap(machines []machinev1alpha1.Machine) map[string][]machinev1alpha1.Machine
BuildOwnerToMachinesMap builds a map from a slice of machinev1alpha1.Machine, that maps the owner reference to a slice of machines with the same owner reference
func GetMachineSetWithMachineClass ¶
func GetMachineSetWithMachineClass(machineDeploymentName, machineClassName string, ownerReferenceToMachineSet map[string][]machinev1alpha1.MachineSet) *machinev1alpha1.MachineSet
GetMachineSetWithMachineClass checks if for the given <machineDeploymentName>, there exists a machine set in the <ownerReferenceToMachineSet> with the machine class <machineClassName> returns the machine set or nil
func ReportFailedMachines ¶
func ReportFailedMachines(status machinev1alpha1.MachineDeploymentStatus) error
ReportFailedMachines reports the names of failed machines in the given `status` per error description.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.