indexer

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package indexer provides indexers for controller-runtime managers.

Index

Constants

View Source
const (
	// FieldNodeNameFromPod is the field name of the node name of a pod.
	FieldNodeNameFromPod = "spec.nodeName"
)

Variables

This section is empty.

Functions

func ExtractNodeName

func ExtractNodeName(rawObj client.Object) []string

ExtractNodeName returns the node name of the given object.

func IndexField

func IndexField(ctx context.Context, mgr ctrlruntime.Manager, obj client.Object, field string, indexerFunc client.IndexerFunc) error

IndexField indexes the given field on the given object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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