Documentation
¶
Index ¶
- func ByProviderDynamic(nps []*spec.NodePool) iter.Seq2[ProviderTemplateGroup, []*spec.NodePool]
- func ByProviderRegion(nodepools []*spec.NodePool) iter.Seq2[string, []*spec.NodePool]
- func ByProviderSpecName(nodepools []*spec.NodePool) iter.Seq2[string, []*spec.NodePool]
- func ByTemplates(nps []*spec.NodePool) iter.Seq2[string, []*spec.NodePool]
- func CommonDynamicNodes(currentNp, desiredNp []*spec.NodePool) []*spec.NodePool
- func CommonStaticNodes(currentNp, desiredNp []*spec.NodePool) []*spec.NodePool
- func Control(nodepools []*spec.NodePool) iter.Seq[*spec.NodePool]
- func DeleteByName(nodepools []*spec.NodePool, name string) []*spec.NodePool
- func DeleteNodeByName(nodepools []*spec.NodePool, nodeName string, keepNodePools map[string]struct{}) []*spec.NodePool
- func Dynamic(nodepools []*spec.NodePool) []*spec.NodePool
- func DynamicGenerateKeys(nodepools []*spec.NodePool, outputDir string) error
- func ExtractDynamic(nodepools []*spec.NodePool) []*spec.DynamicNodePool
- func ExtractRegions(nodepools []*spec.DynamicNodePool) []string
- func FindApiEndpoint(nodepools []*spec.NodePool) (*spec.NodePool, *spec.Node)
- func FindByName(nodePoolName string, nodePools []*spec.NodePool) *spec.NodePool
- func FindNode(nodepools []*spec.NodePool, nodeName string) (static bool, node *spec.Node)
- func FirstControlNode(nodepools []*spec.NodePool) *spec.Node
- func MatchNameAndHashWithTemplate(template, nodepoolName string) (n, h string)
- func MustExtractNameAndHash(pool string) (name, hash string)
- func Static(nodepools []*spec.NodePool) []*spec.NodePool
- func StaticGenerateKeys(nodepools []*spec.NodePool, outputDir string) error
- type LabelsTaintsAnnotationsData
- type ProviderTemplateGroup
- type RegionNetwork
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByProviderDynamic ¶ added in v0.9.3
ByProviderDynamic returns an iterator that groups dynamic nodepools only by provider.
func ByProviderRegion ¶
ByProviderRegion returns an iterator that groups nodepools by provider region.
func ByProviderSpecName ¶
ByProviderSpecName returns an iterator that groups nodepools by provider SpecName.
func ByTemplates ¶
ByTemplates returns an iterator that groups nodepools by provider templates.
func CommonDynamicNodes ¶
func CommonStaticNodes ¶
func DeleteByName ¶ added in v0.9.7
func DeleteNodeByName ¶ added in v0.9.7
func DeleteNodeByName(nodepools []*spec.NodePool, nodeName string, keepNodePools map[string]struct{}) []*spec.NodePool
DeleteNodeByName goes through each nodepool until if find the node with the specified name. If the nodepool reaches 0 nodes the keepNodePools map is checked whether the nodepool should be removed or not.
func DynamicGenerateKeys ¶
DynamicGenerateKeys creates private keys files for all nodes in the provided dynamic node pools in form of <node name>.pem.
func ExtractDynamic ¶
func ExtractDynamic(nodepools []*spec.NodePool) []*spec.DynamicNodePool
ExtractDynamic returns slice of dynamic node pools.
func ExtractRegions ¶
func ExtractRegions(nodepools []*spec.DynamicNodePool) []string
ExtractRegions will return a list of all regions used in list of nodepools
func FindApiEndpoint ¶
FindApiEndpoint searches for a nodepool that has the control node representing the Api endpoint of the cluster.
func FindByName ¶
FindByName returns the first Nodepool that will have same name as specified in parameters, nil otherwise.
func FirstControlNode ¶
FirstControlNode returns the first control node encountered.
func MustExtractNameAndHash ¶
Types ¶
type LabelsTaintsAnnotationsData ¶ added in v0.9.14
type LabelsTaintsAnnotationsData struct {
LabelKeys map[string][]string
AnnotationKeys map[string][]string
TaintKeys map[string][]*spec.Taint
}
func LabelsTaintsAnnotationsDiff ¶ added in v0.9.14
func LabelsTaintsAnnotationsDiff(current, desired []*spec.NodePool) LabelsTaintsAnnotationsData
type ProviderTemplateGroup ¶
type RegionNetwork ¶ added in v0.9.14
func ExtractRegionNetwork ¶ added in v0.9.14
func ExtractRegionNetwork(nodepools []*spec.DynamicNodePool) []RegionNetwork
ExtractRegionNetwork will return a unique list of all regions with networks used in list of nodepools