Documentation ¶
Index ¶
- func ByProvider(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 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 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 ProviderTemplateGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByProvider ¶
ByProvider returns an iterator that groups nodepools 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 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.