deprecate count field on Event API

This commit is contained in:
Yassine TIJANI
2019-04-02 16:19:02 +02:00
parent 2792f1a24e
commit 0f3e9ca700
8 changed files with 9 additions and 4 deletions

View File

@@ -7282,7 +7282,7 @@
"description": "Time of the last occurrence observed"
},
"state": {
"description": "State of this Series: Ongoing or Finished",
"description": "State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18",
"type": "string"
}
},
@@ -11330,7 +11330,7 @@
"description": "Time when last Event from the series was seen before last heartbeat."
},
"state": {
"description": "Information whether this series is ongoing or finished.",
"description": "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18",
"type": "string"
}
},

View File

@@ -4172,6 +4172,7 @@ type EventSeries struct {
// Time of the last occurrence observed
LastObservedTime metav1.MicroTime
// State of this Series: Ongoing or Finished
// Deprecated. Planned removal for 1.18
State EventSeriesState
}

View File

@@ -1218,6 +1218,7 @@ message EventSeries {
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2;
// State of this Series: Ongoing or Finished
// Deprecated. Planned removal for 1.18
optional string state = 3;
}

View File

@@ -4701,6 +4701,7 @@ type EventSeries struct {
// Time of the last occurrence observed
LastObservedTime metav1.MicroTime `json:"lastObservedTime,omitempty" protobuf:"bytes,2,name=lastObservedTime"`
// State of this Series: Ongoing or Finished
// Deprecated. Planned removal for 1.18
State EventSeriesState `json:"state,omitempty" protobuf:"bytes,3,name=state"`
}

View File

@@ -610,7 +610,7 @@ var map_EventSeries = map[string]string{
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.",
"count": "Number of occurrences in this series up to the last heartbeat time",
"lastObservedTime": "Time of the last occurrence observed",
"state": "State of this Series: Ongoing or Finished",
"state": "State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18",
}
func (EventSeries) SwaggerDoc() map[string]string {

View File

@@ -116,6 +116,7 @@ message EventSeries {
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2;
// Information whether this series is ongoing or finished.
// Deprecated. Planned removal for 1.18
optional string state = 3;
}

View File

@@ -96,6 +96,7 @@ type EventSeries struct {
// Time when last Event from the series was seen before last heartbeat.
LastObservedTime metav1.MicroTime `json:"lastObservedTime" protobuf:"bytes,2,opt,name=lastObservedTime"`
// Information whether this series is ongoing or finished.
// Deprecated. Planned removal for 1.18
State EventSeriesState `json:"state" protobuf:"bytes,3,opt,name=state"`
}

View File

@@ -63,7 +63,7 @@ var map_EventSeries = map[string]string{
"": "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.",
"count": "Number of occurrences in this series up to the last heartbeat time",
"lastObservedTime": "Time when last Event from the series was seen before last heartbeat.",
"state": "Information whether this series is ongoing or finished.",
"state": "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18",
}
func (EventSeries) SwaggerDoc() map[string]string {