controllerfetcher

package
v0.0.0-...-b80888c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControllerFetcher

func NewControllerFetcher(config *rest.Config, kubeClient kube_client.Interface, factory informers.SharedInformerFactory, betweenRefreshes, lifeTime time.Duration, jitterFactor float64) *controllerFetcher

NewControllerFetcher returns a new instance of controllerFetcher

Types

type ControllerFetcher

type ControllerFetcher interface {
	// FindTopMostWellKnownOrScalable returns topmost well-known or scalable controller. Error is returned if controller cannot be found.
	FindTopMostWellKnownOrScalable(controller *ControllerKeyWithAPIVersion) (*ControllerKeyWithAPIVersion, error)
}

ControllerFetcher is responsible for finding the topmost well-known or scalable controller

type ControllerKey

type ControllerKey struct {
	Namespace string
	Kind      string
	Name      string
}

ControllerKey identifies a controller.

type ControllerKeyWithAPIVersion

type ControllerKeyWithAPIVersion struct {
	ControllerKey
	ApiVersion string
}

ControllerKeyWithAPIVersion identifies a controller and API it's defined in.

Jump to

Keyboard shortcuts

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