v1

package
v1.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNodeGeneratingHandler

func RegisterNodeGeneratingHandler(ctx context.Context, controller NodeController, apply apply.Apply,
	condition condition.Cond, name string, handler NodeGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterNodeGeneratingHandler configures a NodeController to execute a NodeGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterNodeStatusHandler

func RegisterNodeStatusHandler(ctx context.Context, controller NodeController, condition condition.Cond, name string, handler NodeStatusHandler)

RegisterNodeStatusHandler configures a NodeController to execute a NodeStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterPodGeneratingHandler

func RegisterPodGeneratingHandler(ctx context.Context, controller PodController, apply apply.Apply,
	condition condition.Cond, name string, handler PodGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterPodGeneratingHandler configures a PodController to execute a PodGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterPodStatusHandler

func RegisterPodStatusHandler(ctx context.Context, controller PodController, condition condition.Cond, name string, handler PodStatusHandler)

RegisterPodStatusHandler configures a PodController to execute a PodStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

Types

type Interface

type Interface interface {
	Node() NodeController
	Pod() PodController
	Secret() SecretController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type NodeCache

type NodeCache interface {
	generic.NonNamespacedCacheInterface[*v1.Node]
}

NodeCache interface for retrieving Node resources in memory.

type NodeClient

type NodeClient interface {
	generic.NonNamespacedClientInterface[*v1.Node, *v1.NodeList]
}

NodeClient interface for managing Node resources in Kubernetes.

type NodeController

type NodeController interface {
	generic.NonNamespacedControllerInterface[*v1.Node, *v1.NodeList]
}

NodeController interface for managing Node resources.

type NodeGeneratingHandler

type NodeGeneratingHandler func(obj *v1.Node, status v1.NodeStatus) ([]runtime.Object, v1.NodeStatus, error)

NodeGeneratingHandler is the top-level handler that is executed for every Node event. It extends NodeStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type NodeStatusHandler

type NodeStatusHandler func(obj *v1.Node, status v1.NodeStatus) (v1.NodeStatus, error)

NodeStatusHandler is executed for every added or modified Node. Should return the new status to be updated

type PodCache

type PodCache interface {
	generic.CacheInterface[*v1.Pod]
}

PodCache interface for retrieving Pod resources in memory.

type PodClient

type PodClient interface {
	generic.ClientInterface[*v1.Pod, *v1.PodList]
}

PodClient interface for managing Pod resources in Kubernetes.

type PodController

type PodController interface {
	generic.ControllerInterface[*v1.Pod, *v1.PodList]
}

PodController interface for managing Pod resources.

type PodGeneratingHandler

type PodGeneratingHandler func(obj *v1.Pod, status v1.PodStatus) ([]runtime.Object, v1.PodStatus, error)

PodGeneratingHandler is the top-level handler that is executed for every Pod event. It extends PodStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type PodStatusHandler

type PodStatusHandler func(obj *v1.Pod, status v1.PodStatus) (v1.PodStatus, error)

PodStatusHandler is executed for every added or modified Pod. Should return the new status to be updated

type SecretCache

type SecretCache interface {
	generic.CacheInterface[*v1.Secret]
}

SecretCache interface for retrieving Secret resources in memory.

type SecretClient

type SecretClient interface {
	generic.ClientInterface[*v1.Secret, *v1.SecretList]
}

SecretClient interface for managing Secret resources in Kubernetes.

type SecretController

type SecretController interface {
	generic.ControllerInterface[*v1.Secret, *v1.SecretList]
}

SecretController interface for managing Secret resources.

Jump to

Keyboard shortcuts

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