config

package
v1.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReasonColocationConfigUnmarshalFailed = "ColocationCfgUnmarshalFailed"
	ReasonSLOConfigUnmarshalFailed        = "SLOCfgUnmarshalFailed"
)

Variables

This section is empty.

Functions

func GetConfigMapForCache added in v0.7.0

func GetConfigMapForCache(client client.Client) (*corev1.ConfigMap, error)

Types

type ColocationCfgCache added in v0.5.0

type ColocationCfgCache interface {
	GetCfgCopy() *configuration.ColocationCfg
	IsCfgAvailable() bool
	IsErrorStatus() bool
}

type ColocationHandlerForConfigMapEvent added in v0.5.0

type ColocationHandlerForConfigMapEvent struct {
	EnqueueRequestForConfigMap

	Client client.Client
	// contains filtered or unexported fields
}

func NewColocationHandlerForConfigMapEvent added in v0.5.0

func NewColocationHandlerForConfigMapEvent(client client.Client, initCfg configuration.ColocationCfg, recorder record.EventRecorder) *ColocationHandlerForConfigMapEvent

func (*ColocationHandlerForConfigMapEvent) GetCfgCopy added in v0.7.0

func (*ColocationHandlerForConfigMapEvent) IsCfgAvailable added in v0.7.0

func (p *ColocationHandlerForConfigMapEvent) IsCfgAvailable() bool

func (*ColocationHandlerForConfigMapEvent) IsErrorStatus added in v0.7.0

func (p *ColocationHandlerForConfigMapEvent) IsErrorStatus() bool

type EnqueueRequestForConfigMap added in v0.5.0

type EnqueueRequestForConfigMap struct {
	EnqueueRequest     func(q *workqueue.RateLimitingInterface)
	SyncCacheIfChanged func(configMap *corev1.ConfigMap) bool
}

func (*EnqueueRequestForConfigMap) Create added in v0.5.0

func (*EnqueueRequestForConfigMap) Delete added in v0.5.0

func (*EnqueueRequestForConfigMap) Generic added in v0.5.0

func (*EnqueueRequestForConfigMap) Update added in v0.5.0

Jump to

Keyboard shortcuts

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