mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #95925 from deads2k/doc-events
Event: Document TTL and best-effort-ness
This commit is contained in:
commit
a71334b64c
6
api/openapi-spec/swagger.json
generated
6
api/openapi-spec/swagger.json
generated
@ -6574,7 +6574,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.Event": {
|
"io.k8s.api.core.v1.Event": {
|
||||||
"description": "Event is a report of an event somewhere in the cluster.",
|
"description": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"action": {
|
"action": {
|
||||||
"description": "What action was taken/failed regarding to the Regarding object.",
|
"description": "What action was taken/failed regarding to the Regarding object.",
|
||||||
@ -11028,7 +11028,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"io.k8s.api.events.v1.Event": {
|
"io.k8s.api.events.v1.Event": {
|
||||||
"description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.",
|
"description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"action": {
|
"action": {
|
||||||
"description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.",
|
"description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.",
|
||||||
@ -11167,7 +11167,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.events.v1beta1.Event": {
|
"io.k8s.api.events.v1beta1.Event": {
|
||||||
"description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.",
|
"description": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"action": {
|
"action": {
|
||||||
"description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.",
|
"description": "action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field can have at most 128 characters.",
|
||||||
|
@ -4602,7 +4602,12 @@ const (
|
|||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// Event is a report of an event somewhere in the cluster.
|
// Event is a report of an event somewhere in the cluster. Events
|
||||||
|
// have a limited retention time and triggers and messages may evolve
|
||||||
|
// with time. Event consumers should not rely on the timing of an event
|
||||||
|
// with a given Reason reflecting a consistent underlying trigger, or the
|
||||||
|
// continued existence of events with that Reason. Events should be
|
||||||
|
// treated as informative, best-effort, supplemental data.
|
||||||
// TODO: Decide whether to store these separately or with the object they apply to.
|
// TODO: Decide whether to store these separately or with the object they apply to.
|
||||||
type Event struct {
|
type Event struct {
|
||||||
metav1.TypeMeta
|
metav1.TypeMeta
|
||||||
|
@ -1403,7 +1403,12 @@ message EphemeralVolumeSource {
|
|||||||
optional bool readOnly = 2;
|
optional bool readOnly = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Event is a report of an event somewhere in the cluster.
|
// Event is a report of an event somewhere in the cluster. Events
|
||||||
|
// have a limited retention time and triggers and messages may evolve
|
||||||
|
// with time. Event consumers should not rely on the timing of an event
|
||||||
|
// with a given Reason reflecting a consistent underlying trigger, or the
|
||||||
|
// continued existence of events with that Reason. Events should be
|
||||||
|
// treated as informative, best-effort, supplemental data.
|
||||||
message Event {
|
message Event {
|
||||||
// Standard object's metadata.
|
// Standard object's metadata.
|
||||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||||
|
@ -5365,7 +5365,12 @@ const (
|
|||||||
// +genclient
|
// +genclient
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// Event is a report of an event somewhere in the cluster.
|
// Event is a report of an event somewhere in the cluster. Events
|
||||||
|
// have a limited retention time and triggers and messages may evolve
|
||||||
|
// with time. Event consumers should not rely on the timing of an event
|
||||||
|
// with a given Reason reflecting a consistent underlying trigger, or the
|
||||||
|
// continued existence of events with that Reason. Events should be
|
||||||
|
// treated as informative, best-effort, supplemental data.
|
||||||
type Event struct {
|
type Event struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard object's metadata.
|
// Standard object's metadata.
|
||||||
|
@ -637,7 +637,7 @@ func (EphemeralVolumeSource) SwaggerDoc() map[string]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var map_Event = map[string]string{
|
var map_Event = map[string]string{
|
||||||
"": "Event is a report of an event somewhere in the cluster.",
|
"": "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.",
|
||||||
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||||
"involvedObject": "The object that this event is about.",
|
"involvedObject": "The object that this event is about.",
|
||||||
"reason": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.",
|
"reason": "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.",
|
||||||
|
@ -30,6 +30,11 @@ import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
|||||||
option go_package = "v1";
|
option go_package = "v1";
|
||||||
|
|
||||||
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
||||||
|
// Events have a limited retention time and triggers and messages may evolve
|
||||||
|
// with time. Event consumers should not rely on the timing of an event
|
||||||
|
// with a given Reason reflecting a consistent underlying trigger, or the
|
||||||
|
// continued existence of events with that Reason. Events should be
|
||||||
|
// treated as informative, best-effort, supplemental data.
|
||||||
message Event {
|
message Event {
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
|
@ -25,6 +25,11 @@ import (
|
|||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
||||||
|
// Events have a limited retention time and triggers and messages may evolve
|
||||||
|
// with time. Event consumers should not rely on the timing of an event
|
||||||
|
// with a given Reason reflecting a consistent underlying trigger, or the
|
||||||
|
// continued existence of events with that Reason. Events should be
|
||||||
|
// treated as informative, best-effort, supplemental data.
|
||||||
type Event struct {
|
type Event struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ package v1
|
|||||||
|
|
||||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||||
var map_Event = map[string]string{
|
var map_Event = map[string]string{
|
||||||
"": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.",
|
"": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.",
|
||||||
"eventTime": "eventTime is the time when this Event was first observed. It is required.",
|
"eventTime": "eventTime is the time when this Event was first observed. It is required.",
|
||||||
"series": "series is data about the Event series this event represents or nil if it's a singleton Event.",
|
"series": "series is data about the Event series this event represents or nil if it's a singleton Event.",
|
||||||
"reportingController": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.",
|
"reportingController": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.",
|
||||||
|
@ -30,6 +30,11 @@ import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
|
|||||||
option go_package = "v1beta1";
|
option go_package = "v1beta1";
|
||||||
|
|
||||||
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
||||||
|
// Events have a limited retention time and triggers and messages may evolve
|
||||||
|
// with time. Event consumers should not rely on the timing of an event
|
||||||
|
// with a given Reason reflecting a consistent underlying trigger, or the
|
||||||
|
// continued existence of events with that Reason. Events should be
|
||||||
|
// treated as informative, best-effort, supplemental data.
|
||||||
message Event {
|
message Event {
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
|
@ -27,6 +27,11 @@ import (
|
|||||||
// +k8s:prerelease-lifecycle-gen:deprecated=1.22
|
// +k8s:prerelease-lifecycle-gen:deprecated=1.22
|
||||||
|
|
||||||
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
// Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
||||||
|
// Events have a limited retention time and triggers and messages may evolve
|
||||||
|
// with time. Event consumers should not rely on the timing of an event
|
||||||
|
// with a given Reason reflecting a consistent underlying trigger, or the
|
||||||
|
// continued existence of events with that Reason. Events should be
|
||||||
|
// treated as informative, best-effort, supplemental data.
|
||||||
type Event struct {
|
type Event struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ package v1beta1
|
|||||||
|
|
||||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||||
var map_Event = map[string]string{
|
var map_Event = map[string]string{
|
||||||
"": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.",
|
"": "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.",
|
||||||
"eventTime": "eventTime is the time when this Event was first observed. It is required.",
|
"eventTime": "eventTime is the time when this Event was first observed. It is required.",
|
||||||
"series": "series is data about the Event series this event represents or nil if it's a singleton Event.",
|
"series": "series is data about the Event series this event represents or nil if it's a singleton Event.",
|
||||||
"reportingController": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.",
|
"reportingController": "reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.",
|
||||||
|
Loading…
Reference in New Issue
Block a user