Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComputeReservationReconciler ¶
type ComputeReservationReconciler struct { // Client for the kubernetes API. client.Client // Kubernetes scheme to use for the reservations. Scheme *runtime.Scheme // Configuration for the controller. Conf Config }
ComputeReservationReconciler reconciles a ComputeReservation object
func (*ComputeReservationReconciler) Reconcile ¶
func (r *ComputeReservationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*ComputeReservationReconciler) SetupWithManager ¶
func (r *ComputeReservationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type Config ¶
type Config struct { // The endpoint where to find the nova external scheduler endpoint. Endpoints EndpointsConfig `json:"endpoints"` // Hypervisor types that should be managed. Hypervisors []string `json:"hypervisors"` }
Configuration for the reservations operator.
type EndpointsConfig ¶
type EndpointsConfig struct { // The nova external scheduler endpoint. NovaExternalScheduler string `json:"novaExternalScheduler"` }
Endpoints for the reservations operator.
type Monitor ¶
type Monitor struct { // Client for the kubernetes API. client.Client // contains filtered or unexported fields }
Monitor for reservations metrics.
func (*Monitor) Collect ¶
func (m *Monitor) Collect(ch chan<- prometheus.Metric)
Collect the metrics on-demand and send them to Prometheus.
func (*Monitor) Describe ¶
func (m *Monitor) Describe(ch chan<- *prometheus.Desc)
Describe the metrics for Prometheus.
Click to show internal directories.
Click to hide internal directories.