mcp

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPoolRolesForStaticEntriesExpansion

func GetPoolRolesForStaticEntriesExpansion(nodes []corev1.Node, nodeToPool map[string]string) map[string][]string

GetPoolRolesForStaticEntriesExpansion derives, per pool, which of [master, worker] Are present on its nodes; used to expand role-scoped static entries across pools.

func ResolveNodeToPool

func ResolveNodeToPool(nodes []corev1.Node) (map[string]string, error)

ResolveNodeToPool builds a mapping from node name to its MachineConfigPool. It derives the pool from the node annotation "machineconfiguration.openshift.io/currentConfig", expected in the form: "rendered-<pool>-<hash>". The pool name is obtained by removing the "rendered-" prefix and trimming the trailing "-<hash>". Returns an error if the annotation is missing or malformed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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