controllers

package
v0.0.0-...-00ec399 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerMetrics

type ControllerMetrics struct {
	ImageCount      *prometheus.GaugeVec
	PodDeletedTotal *prometheus.CounterVec
}

func NewHandlerMetrics

func NewHandlerMetrics(prefix string) *ControllerMetrics

func (ControllerMetrics) MustRegister

func (m ControllerMetrics) MustRegister(reg metrics.RegistererGatherer)

type PodReconciler

type PodReconciler struct {
	client.Client
	Registry Registry
	// contains filtered or unexported fields
}

PodReconciler reconciles a Cluster object

func NewPodReconciler

func NewPodReconciler(prefix string, opts ...PodReconcilerOption) *PodReconciler

func (*PodReconciler) Reconcile

func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PodReconciler) SetupWithManager

func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error

type PodReconcilerOption

type PodReconcilerOption func(*PodReconciler)

func WithClient

func WithClient(cl client.Client) PodReconcilerOption

func WithRegistry

func WithRegistry(reg Registry) PodReconcilerOption

type Registry

type Registry interface {
	ListArchs(ctx context.Context, imagePullSecret, image string) ([]registry.Platform, error)
}

Jump to

Keyboard shortcuts

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