Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRestartNamespaces ¶
ParseRestartNamespaces validates a comma-separated restart namespace allowlist. An empty value means cluster-wide.
Types ¶
type EvidenceReconciler ¶
func (*EvidenceReconciler) SetupWithManager ¶
func (r *EvidenceReconciler) SetupWithManager(m ctrl.Manager) error
type ProfileReconciler ¶
type ProfileReconciler struct {
client.Client
Reader client.Reader
Namespace string
WorkerImage string
AllowedMirrorHosts []string
NodeMetricsAddress string
GCGrace time.Duration
GCSweepInterval time.Duration
Recorder record.EventRecorder
}
func (*ProfileReconciler) SetupWithManager ¶
func (r *ProfileReconciler) SetupWithManager(m ctrl.Manager) error
type RestartEngine ¶
type RestartEngine struct {
Client client.Client
Reader client.Reader
MaxConcurrent int
WorkloadProgressDeadline time.Duration
Now func() time.Time
Recorder record.EventRecorder
Leadership *RestartLeadership
// Namespaces limits restart candidates; empty means cluster-wide.
Namespaces []string
}
RestartEngine is invoked only by the single-worker RuntimeImage controller. Leader election and that serialized queue make its persisted global slot accounting exclusive across all RuntimeImage resources.
func (*RestartEngine) Reconcile ¶
func (e *RestartEngine) Reconcile(ctx context.Context, im *api.RuntimeImage) error
type RestartLeadership ¶
RestartLeadership adds a cluster singleton without changing the manager's component-namespace election lease during a rolling feature enablement. Its leader context cancels in-flight restart API calls if that lease is lost.
func (*RestartLeadership) NeedLeaderElection ¶
func (l *RestartLeadership) NeedLeaderElection() bool
type RuntimeMetrics ¶
func NewRuntimeMetrics ¶
func NewRuntimeMetrics(reader client.Reader) *RuntimeMetrics
func (*RuntimeMetrics) Collect ¶
func (m *RuntimeMetrics) Collect(ch chan<- prometheus.Metric)
func (*RuntimeMetrics) Describe ¶
func (m *RuntimeMetrics) Describe(ch chan<- *prometheus.Desc)
type RuntimeReconciler ¶
type RuntimeReconciler struct {
client.Client
Reader client.Reader
NodeProgressDeadline time.Duration
Now func() time.Time
AllowedMirrorHosts []string
Restarts *RestartEngine
Recorder record.EventRecorder
// contains filtered or unexported fields
}
func (*RuntimeReconciler) SetupWithManager ¶
func (r *RuntimeReconciler) SetupWithManager(m ctrl.Manager) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.