pendingcontrollers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PendingControllersAnnotation = common.DefaultPrefix + "pending-controllers"
)

Variables

This section is empty.

Functions

func ControllerDependenciesFulfilled

func ControllerDependenciesFulfilled(fedObject fedcorev1a1.GenericFederatedObject, controllerName string) (bool, error)

func SetPendingControllers

func SetPendingControllers(
	fedObject fedcorev1a1.GenericFederatedObject,
	controllers PendingControllers,
) (updated bool, err error)

func UpdatePendingControllers

func UpdatePendingControllers(
	fedObject fedcorev1a1.GenericFederatedObject,
	toRemove string,
	shouldSetDownstream bool,
	allControllers PendingControllers,
) (updated bool, err error)

Types

type PendingControllers

type PendingControllers [][]string

func GetDownstreamControllers

func GetDownstreamControllers(allControllers PendingControllers, current string) PendingControllers

func GetPendingControllers

func GetPendingControllers(fedObject fedcorev1a1.GenericFederatedObject) (PendingControllers, error)

func NormalizeControllers

func NormalizeControllers(controllers PendingControllers) PendingControllers

Returns a deep copy of controllers, with 0-length inner slices removed. The outer slice is guaranteed to be non-nil if empty for less ambiguity.

Jump to

Keyboard shortcuts

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