v1

package
v0.0.0-...-bf1c9b8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodDisruptionBudgetClusterLister

func NewPodDisruptionBudgetClusterLister(indexer cache.Indexer) *podDisruptionBudgetClusterLister

NewPodDisruptionBudgetClusterLister returns a new PodDisruptionBudgetClusterLister. We assume that the indexer: - is fed by a cross-workspace LIST+WATCH - uses kcpcache.MetaClusterNamespaceKeyFunc as the key function - has the kcpcache.ClusterIndex as an index - has the kcpcache.ClusterAndNamespaceIndex as an index

Types

type PodDisruptionBudgetClusterLister

type PodDisruptionBudgetClusterLister interface {
	// List lists all PodDisruptionBudgets in the indexer.
	// Objects returned here must be treated as read-only.
	List(selector labels.Selector) (ret []*policyv1.PodDisruptionBudget, err error)
	// Cluster returns a lister that can list and get PodDisruptionBudgets in one workspace.
	Cluster(clusterName logicalcluster.Name) policyv1listers.PodDisruptionBudgetLister
	PodDisruptionBudgetClusterListerExpansion
}

PodDisruptionBudgetClusterLister can list PodDisruptionBudgets across all workspaces, or scope down to a PodDisruptionBudgetLister for one workspace. All objects returned here must be treated as read-only.

type PodDisruptionBudgetClusterListerExpansion

type PodDisruptionBudgetClusterListerExpansion interface{}

PodDisruptionBudgetClusterListerExpansion allows custom methods to be added to PodDisruptionBudgetClusterLister.

type PodDisruptionBudgetListerExpansion

type PodDisruptionBudgetListerExpansion interface {
	GetPodPodDisruptionBudgets(pod *v1.Pod) ([]*policy.PodDisruptionBudget, error)
}

PodDisruptionBudgetListerExpansion allows custom methods to be added to PodDisruptionBudgetLister.

type PodDisruptionBudgetNamespaceListerExpansion

type PodDisruptionBudgetNamespaceListerExpansion interface{}

PodDisruptionBudgetNamespaceListerExpansion allows custom methods to be added to PodDisruptionBudgetNamespaceLister.

Jump to

Keyboard shortcuts

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