package
0.0.0-20240904132510-42a52d07f539
Repository: https://github.com/openshift/node-feature-discovery.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AllocatableResourceListFromNodeResourceTopology extract the map zone:allocatableResources from the given NodeResourceTopology instance.
CompareAllocatableResources compares `expected` and `got` map zone:allocatableResources respectively (see: AllocatableResourceListFromNodeResourceTopology), and informs the caller if the maps are equal.
CompareResourceList compares `expected` and `got` ResourceList respectively, and informs the caller if the two ResourceList are equal.
ConfigureRBAC creates required RBAC configuration.
CreateNfdCRDs creates the NodeFeatureRule CRD in the API server.
CreateNodeFeature creates a dummy NodeFeature object for a node.
CreateNodeFeatureGroupsFromFile creates a NodeFeatureGroup object from a given file located under test data directory.
CreateNodeFeatureRuleFromFile creates a NodeFeatureRule object from a given file located under test data directory.
CreateNodeResourceTopologies creates the NodeResourceTopology in the cluster if the CRD doesn't exists already.
CreateNodeResourceTopology creates a dummy NodeResourceTopology object for a node.
CreateOrUpdateNodeFeaturesFromFile creates/updates a NodeFeature object from a given file located under test data directory.
CreateService creates nfd-master Service.
DeconfigureRBAC removes RBAC configuration.
FilterNodesWithEnoughCores returns all nodes with at least the amount of given CPU allocatable.
No description provided by the author
No description provided by the author
GetByRole returns all nodes with the specified role.
GetBySelector returns all nodes with the specified selector.
GetNodeTopology returns the NodeResourceTopology data for the node identified by `nodeName`.
GetWorkerNodes returns all nodes labeled as worker.
IsValidNodeTopology checks the provided NodeResourceTopology object if it is well-formad, internally consistent and consistent with the given kubelet config object.
CreateConfigMap is a helper for creating a simple ConfigMap object with one key.
NewNodeResourceTopologies makes a CRD golang object representing NodeResourceTopology definition.
UpdateConfigMap is a helper for updating a ConfigMap object.
UpdateNodeFeatureRulesFromFile updates existing NodeFeatureRule object from a given file located under test data directory.

# Constants

No description provided by the author
No description provided by the author
LabelHostname contains the key for the hostname label.
LabelRole contains the key for the role label.
RoleWorker contains the worker role.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author