ensurer

package
v1.24.11 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlowSchemaRemoveCandidates added in v1.24.0

func GetFlowSchemaRemoveCandidates(lister flowcontrollisters.FlowSchemaLister, bootstrap []*flowcontrolv1beta2.FlowSchema) ([]string, error)

GetFlowSchemaRemoveCandidates returns a list of FlowSchema object names that are candidates for deletion from the cluster. bootstrap: a set of hard coded FlowSchema configuration objects kube-apiserver maintains in-memory.

func GetPriorityLevelRemoveCandidates added in v1.24.0

func GetPriorityLevelRemoveCandidates(lister flowcontrollisters.PriorityLevelConfigurationLister, bootstrap []*flowcontrolv1beta2.PriorityLevelConfiguration) ([]string, error)

GetPriorityLevelRemoveCandidates returns a list of PriorityLevelConfiguration names that are candidates for removal from the cluster. bootstrap: a set of hard coded PriorityLevelConfiguration configuration objects kube-apiserver maintains in-memory.

Types

type FlowSchemaEnsurer

type FlowSchemaEnsurer interface {
	Ensure([]*flowcontrolv1beta2.FlowSchema) error
}

FlowSchemaEnsurer ensures the specified bootstrap configuration objects

func NewMandatoryFlowSchemaEnsurer

NewMandatoryFlowSchemaEnsurer returns a FlowSchemaEnsurer instance that can be used to ensure a set of mandatory FlowSchema configuration objects.

func NewSuggestedFlowSchemaEnsurer

NewSuggestedFlowSchemaEnsurer returns a FlowSchemaEnsurer instance that can be used to ensure a set of suggested FlowSchema configuration objects.

type FlowSchemaRemover

type FlowSchemaRemover interface {
	RemoveAutoUpdateEnabledObjects([]string) error
}

FlowSchemaRemover is the interface that wraps the RemoveAutoUpdateEnabledObjects method.

RemoveAutoUpdateEnabledObjects removes a set of bootstrap FlowSchema objects specified via their names. The function removes an object only if automatic update of the spec is enabled for it.

func NewFlowSchemaRemover

NewFlowSchemaRemover returns a FlowSchemaRemover instance that can be used to remove a set of FlowSchema configuration objects.

type PriorityLevelEnsurer

type PriorityLevelEnsurer interface {
	Ensure([]*flowcontrolv1beta2.PriorityLevelConfiguration) error
}

PriorityLevelEnsurer ensures the specified bootstrap configuration objects

func NewMandatoryPriorityLevelEnsurer

NewMandatoryPriorityLevelEnsurer returns a PriorityLevelEnsurer instance that can be used to ensure a set of mandatory PriorityLevelConfiguration configuration objects.

func NewSuggestedPriorityLevelEnsurerEnsurer

NewSuggestedPriorityLevelEnsurerEnsurer returns a PriorityLevelEnsurer instance that can be used to ensure a set of suggested PriorityLevelConfiguration configuration objects.

type PriorityLevelRemover

type PriorityLevelRemover interface {
	RemoveAutoUpdateEnabledObjects([]string) error
}

PriorityLevelRemover is the interface that wraps the RemoveAutoUpdateEnabledObjects method.

RemoveAutoUpdateEnabledObjects removes a set of bootstrap PriorityLevelConfiguration objects specified via their names. The function removes an object only if automatic update of the spec is enabled for it.

func NewPriorityLevelRemover

NewPriorityLevelRemover returns a PriorityLevelRemover instance that can be used to remove a set of PriorityLevelConfiguration configuration objects.

Jump to

Keyboard shortcuts

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