Versions in this module Expand all Collapse all v0 v0.2.0 Apr 12, 2023 v0.1.0 Apr 3, 2023 Changes in this version + var CarbonIntensityMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{ ... }, []string{ ... }) + var DefaultMaxReplicasMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{ ... }, []string{ ... }) + var EcoModeOffMetric = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var HpaCurrentReplicasMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{ ... }, []string{ ... }) + var HpaDesiredReplicasMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{ ... }, []string{ ... }) + var MaxReplicasMetric = prometheus.NewGaugeVec(prometheus.GaugeOpts{ ... }, []string{ ... }) + var ReconcileErrorsTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + var ReconcilesTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ ... }, []string{ ... }) + type CarbonAwareKedaScalerReconciler struct + Recorder record.EventRecorder + Scheme *runtime.Scheme + func (r *CarbonAwareKedaScalerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) + func (r *CarbonAwareKedaScalerReconciler) SetupWithManager(mgr ctrl.Manager) error + type CarbonForecast struct + Duration int32 + Location string + Timestamp time.Time + Value float64 + type CarbonForecastConfigMapFetcher struct + Client client.Client + ConfigMapKey string + ConfigMapName string + ConfigMapNamespace string + func (c *CarbonForecastConfigMapFetcher) Fetch(ctx context.Context) ([]CarbonForecast, error) + type CarbonForecastFetcher interface + Fetch func(ctx context.Context) ([]CarbonForecast, error) + type CarbonForecastMockConfigMapFetcher struct + CarbonForecast []CarbonForecast + Client client.Client + func (c *CarbonForecastMockConfigMapFetcher) Fetch(ctx context.Context) ([]CarbonForecast, error) + type EcoModeStatus struct + DisableReason string + IsDisabled bool + RequeueAfter time.Duration