mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
add descriptions to these event/types.go files
This commit is contained in:
parent
5b0d0451ff
commit
e726ce97fb
8
api/openapi-spec/swagger.json
generated
8
api/openapi-spec/swagger.json
generated
@ -11023,7 +11023,8 @@
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
|
||||
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
|
||||
},
|
||||
"note": {
|
||||
"description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.",
|
||||
@ -11059,7 +11060,6 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"metadata",
|
||||
"eventTime"
|
||||
],
|
||||
"type": "object",
|
||||
@ -11162,7 +11162,8 @@
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
|
||||
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
|
||||
},
|
||||
"note": {
|
||||
"description": "note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.",
|
||||
@ -11198,7 +11199,6 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"metadata",
|
||||
"eventTime"
|
||||
],
|
||||
"type": "object",
|
||||
|
@ -10,8 +10,6 @@
|
||||
./staging/src/k8s.io/api/certificates/v1/types.go
|
||||
./staging/src/k8s.io/api/certificates/v1beta1/types.go
|
||||
./staging/src/k8s.io/api/core/v1/types.go
|
||||
./staging/src/k8s.io/api/events/v1/types.go
|
||||
./staging/src/k8s.io/api/events/v1beta1/types.go
|
||||
./staging/src/k8s.io/api/extensions/v1beta1/types.go
|
||||
./staging/src/k8s.io/api/flowcontrol/v1alpha1/types.go
|
||||
./staging/src/k8s.io/api/flowcontrol/v1beta1/types.go
|
||||
|
@ -36,6 +36,9 @@ option go_package = "v1";
|
||||
// continued existence of events with that Reason. Events should be
|
||||
// treated as informative, best-effort, supplemental data.
|
||||
message Event {
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// eventTime is the time when this Event was first observed. It is required.
|
||||
|
@ -33,6 +33,9 @@ import (
|
||||
type Event struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// eventTime is the time when this Event was first observed. It is required.
|
||||
|
@ -29,6 +29,7 @@ package v1
|
||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||
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. 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",
|
||||
"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.",
|
||||
"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.",
|
||||
|
@ -36,6 +36,9 @@ option go_package = "v1beta1";
|
||||
// continued existence of events with that Reason. Events should be
|
||||
// treated as informative, best-effort, supplemental data.
|
||||
message Event {
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
// +optional
|
||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||
|
||||
// eventTime is the time when this Event was first observed. It is required.
|
||||
|
@ -35,6 +35,9 @@ import (
|
||||
type Event struct {
|
||||
metav1.TypeMeta `json:",inline"`
|
||||
|
||||
// Standard object's metadata.
|
||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
// +optional
|
||||
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
|
||||
|
||||
// eventTime is the time when this Event was first observed. It is required.
|
||||
|
@ -29,6 +29,7 @@ package v1beta1
|
||||
// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
|
||||
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. 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",
|
||||
"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.",
|
||||
"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