controller

package
v0.0.0-...-b5ed4c6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFrpServerActive

func IsFrpServerActive(i *v1beta1.FrpServer) bool

func IsPodActive

func IsPodActive(p *v1.Pod) bool

Types

type RefManager

type RefManager struct {
	// contains filtered or unexported fields
}

RefManager provides the method to

func NewRefManager

func NewRefManager(client client.Client, selector labels.Selector, owner metav1.Object, schema *runtime.Scheme) (*RefManager, error)

NewRefManager returns a RefManager that exposes methods to manage the controllerRef of pods.

func (*RefManager) ClaimOwnedObjects

func (mgr *RefManager) ClaimOwnedObjects(objs []metav1.Object, filters ...func(metav1.Object) bool) ([]metav1.Object, error)

ClaimOwnedObjects tries to take ownership of a list of objects for this controller.

Jump to

Keyboard shortcuts

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