controller

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ReconcileConflictErrors is a prometheus counter metrics which holds the total
	// number of conflict errors from the Reconciler
	ReconcileConflictErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "controller_runtime_reconcile_conflict_errors_total",
		Help: "Total number of reconciliation conflict errors per controller",
	}, []string{"controller"})
	ReconcileCacheMisses = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "controller_runtime_read_back_misses_total",
		Help: "Total number of times reading back a create trial misses",
	})

	ExperimentTrials = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "redsky_experiment_trials_total",
		Help: "Total number of trials present for an experiment",
	}, []string{"experiment"})
	ExperimentActiveTrials = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "redsky_experiment_active_trials_total",
		Help: "Total number of active trials present for an experiment",
	}, []string{"experiment"})
)

Functions

func IgnoreAlreadyExists

func IgnoreAlreadyExists(err error) error

IgnoreAlreadyExists returns the supplied error, unless that error is an "already exists" error

func IgnoreNotFound

func IgnoreNotFound(err error) error

IgnoreNotFound returns the supplied error, unless that error is a "not found" error

func IgnoreReportError

func IgnoreReportError(err error) error

IgnoreReportError returns the supplied error, unless the error is ignorable when reporting trials

func RequeueConflict

func RequeueConflict(err error) (*ctrl.Result, error)

RequeueConflict will return a new result and the supplied error, adjusted for Kubernetes conflict errors

func RequeueIfUnavailable

func RequeueIfUnavailable(err error) (*ctrl.Result, error)

RequeueIfUnavailable will return a new result and the supplied error, adjusted for trial unavailable errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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