You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define event action constants alongside the existing reasons and pass
them to every Eventf call in schedulers, controllers and poollets.
Also fix a few malformed event messages (missing format arguments).
Signed-off-by: Maximilian Moehl <maximilian@moehl.eu>
log.Info("No bucket pool available for bucket class", "BucketClass", bucket.Spec.BucketClassRef.Name)
76
-
s.Eventf(bucket, nil, corev1.EventTypeNormal, "CannotSchedule", "No BucketPoolRef found for BucketClass %s", bucket.Spec.BucketClassRef.Name)
76
+
s.Eventf(bucket, nil, corev1.EventTypeNormal, "CannotSchedule", scheduling, "No BucketPoolRef found for BucketClass %s", bucket.Spec.BucketClassRef.Name)
r.Eventf(machine, nil, corev1.EventTypeNormal, machinepoolletEvents.MachineClassNotReady, "Machine class %s is not ready: %v", machineClassName, err)
713
+
r.Eventf(machine, nil, corev1.EventTypeNormal, machinepoolletEvents.MachineClassNotReady, machinepoolletEvents.ResolvingMachineClass, "Machine class %s is not ready: %v", machineClassName, err)
r.Eventf(machine, nil, corev1.EventTypeNormal, machinepoolletEvents.IgnitionNotReady, "Ignition has no data at key %s", ignitionKey)
758
+
r.Eventf(machine, nil, corev1.EventTypeNormal, machinepoolletEvents.IgnitionNotReady, machinepoolletEvents.ResolvingIgnition, "Ignition has no data at key %s", ignitionKey)
0 commit comments