mcp

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPoolRolesForStaticEntriesExpansion

func GetPoolRolesForStaticEntriesExpansion(cs *client.ClientSet, nodeToPool map[string]string) (map[string][]string, error)

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(cs *client.ClientSet) (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