controller

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImagePutInCache = prometheus.NewCounter(
		prometheus.CounterOpts{
			Namespace: kuikMetrics.Namespace,
			Subsystem: subsystem,
			Name:      "image_put_in_cache_total",
			Help:      "Number of images put in cache successfully",
		},
	)
	ImageRemovedFromCache = prometheus.NewCounter(
		prometheus.CounterOpts{
			Namespace: kuikMetrics.Namespace,
			Subsystem: subsystem,
			Name:      "image_removed_from_cache_total",
			Help:      "Number of images removed from cache successfully",
		},
	)
)
View Source
var ProbeAddr = ""

Functions

func ForceName

func ForceName(c client.Client, ctx context.Context, newName string, obj client.Object, finalizerName string) error

func Healthz

func Healthz() error

func MakeChecker

func MakeChecker(check func() error) healthz.Checker

func Readyz

func Readyz() error

func RegisterMetrics

func RegisterMetrics(client client.Client)

func SetLeader

func SetLeader(leader bool)

Types

type ControllerCollector

type ControllerCollector struct {
	client.Client
}

func (*ControllerCollector) Collect

func (c *ControllerCollector) Collect(ch chan<- prometheus.Metric)

func (*ControllerCollector) Describe

func (c *ControllerCollector) Describe(ch chan<- *prometheus.Desc)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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