Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMachineConfigPools ¶
func FindMachineConfigPools(mcps *mcov1.MachineConfigPoolList, nodeGroups []nropv1.NodeGroup) ([]*mcov1.MachineConfigPool, error)
FindMachineConfigPools returns a slice of all the MachineConfigPool matching the configured node groups
Types ¶
type Tree ¶
type Tree struct { NodeGroup *nropv1.NodeGroup MachineConfigPools []*mcov1.MachineConfigPool }
Tree maps a NodeGroup to the MachineConfigPool identified by the NodeGroup's MCPSelector. It is meant to use internally to bind the two concepts. Should be never exposed to users - hence it has not nor must have a JSON mapping. NOTE: because of historical accident we have a 1:N mapping between NodeGroup and MCPs (MachineConfigPool*s* is a slice!) Unfortunately this is with very, very high probability a refactoring mistake which slipped in unchecked. One of the key design assumptions in NROP is the 1:1 mapping between NodeGroups and MCPs. This historical accident should be fixed in future versions.
func FindTrees ¶
FindTrees binds the provided mcps from their list to the given nodegroups. Note that if no nodegroup match, the result slice may be empty. / NOTE: because of historical accident we have a 1:N mapping between NodeGroup and MCPs (MachineConfigPool*s* is a slice!) Unfortunately this is with very, very high probability a refactoring mistake which slipped in unchecked. One of the key design assumptions in NROP is the 1:1 mapping between NodeGroups and MCPs. This historical accident should be fixed in future versions.