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
The reason field serves both machine-readable and human-readable purposes.
Machine-readable: It follows UpperCamelCase formatting, making it suitable for automated processing (e.g., switch statements).
Human-readable: It is also intended to be short and understandable to users when viewed in logs or UIs.
These are not mutually exclusive; the key is to balance readability for both humans and machines. A concise, formatted reason like PodScheduled can serve both purposes effectively.
k8s-ci-robot
added
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
and removed
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
labels
Jan 15, 2025
EventRecorder
interface used forevents/v1
saysclient-go/tools/internal/events/interfaces.go
Lines 35 to 38 in 53c7e93
implying that the field should be machine-readable. At the same time Event.Reason comment says
https://github.com/kubernetes/api/blob/9dc1a952bda9aeb400aa6409b7d89eff50d6ea77/events/v1/types.go#L61-L63
implying it should be human-readable. Also,
Event.Action
field says it should be machine-readable, so I would expect it to be used for switch statements.I am confused, please help.
The text was updated successfully, but these errors were encountered: