mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Remove CONDITION from event object completely
# *** ERROR: *** Some files have not been gofmt'd. To fix these # errors, run gofmt -s -w <file>, or cut and paste the following: # gofmt -s -w pkg/kubecfg/resource_printer.go pkg/proxy/config/config.go pkg/runtime/types.go # # Your commit will be aborted unless you override this warning. To # commit in spite of these format errors, delete the following line: # COMMIT_BLOCKED_ON_GOFMT
This commit is contained in:
@@ -1038,18 +1038,9 @@ type Event struct {
|
||||
// Required. The object that this event is about.
|
||||
InvolvedObject ObjectReference `json:"involvedObject,omitempty"`
|
||||
|
||||
// Should be a short, machine understandable string that describes the current condition
|
||||
// of the referred object. This should not give the reason for being in this state.
|
||||
// Examples: "Running", "CantStart", "CantSchedule", "Deleted".
|
||||
// It's OK for components to make up conditions to report here, but the same string should
|
||||
// always be used for the same conditions.
|
||||
// TODO: define a way of making sure these are consistent and don't collide.
|
||||
// TODO: provide exact specification for format.
|
||||
Condition string `json:"condition,omitempty"`
|
||||
|
||||
// Optional; this should be a short, machine understandable string that gives the reason
|
||||
// for the transition into the object's current condition. For example, if ObjectCondition is
|
||||
// "CantStart", StatusReason might be "ImageNotFound".
|
||||
// for this event being generated. For example, if the event is reporting that a container
|
||||
// can't start, the Reason might be "ImageNotFound".
|
||||
// TODO: provide exact specification for format.
|
||||
Reason string `json:"reason,omitempty"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user