mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Remove deprecated State fiel in EventSeries
This commit is contained in:
parent
cdc9e337d2
commit
edc60a970a
@ -4521,21 +4521,8 @@ type EventSeries struct {
|
|||||||
Count int32
|
Count int32
|
||||||
// Time of the last occurrence observed
|
// Time of the last occurrence observed
|
||||||
LastObservedTime metav1.MicroTime
|
LastObservedTime metav1.MicroTime
|
||||||
// State of this Series: Ongoing or Finished
|
|
||||||
// Deprecated. Planned removal for 1.18
|
|
||||||
State EventSeriesState
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventSeriesState defines the state of event series
|
|
||||||
type EventSeriesState string
|
|
||||||
|
|
||||||
// These are valid values of event series state
|
|
||||||
const (
|
|
||||||
EventSeriesStateOngoing EventSeriesState = "Ongoing"
|
|
||||||
EventSeriesStateFinished EventSeriesState = "Finished"
|
|
||||||
EventSeriesStateUnknown EventSeriesState = "Unknown"
|
|
||||||
)
|
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// EventList is a list of events.
|
// EventList is a list of events.
|
||||||
|
@ -5215,19 +5215,10 @@ type EventSeries struct {
|
|||||||
Count int32 `json:"count,omitempty" protobuf:"varint,1,name=count"`
|
Count int32 `json:"count,omitempty" protobuf:"varint,1,name=count"`
|
||||||
// Time of the last occurrence observed
|
// Time of the last occurrence observed
|
||||||
LastObservedTime metav1.MicroTime `json:"lastObservedTime,omitempty" protobuf:"bytes,2,name=lastObservedTime"`
|
LastObservedTime metav1.MicroTime `json:"lastObservedTime,omitempty" protobuf:"bytes,2,name=lastObservedTime"`
|
||||||
// State of this Series: Ongoing or Finished
|
|
||||||
// Deprecated. Planned removal for 1.18
|
// +k8s:deprecated=state,protobuf=3
|
||||||
State EventSeriesState `json:"state,omitempty" protobuf:"bytes,3,name=state"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type EventSeriesState string
|
|
||||||
|
|
||||||
const (
|
|
||||||
EventSeriesStateOngoing EventSeriesState = "Ongoing"
|
|
||||||
EventSeriesStateFinished EventSeriesState = "Finished"
|
|
||||||
EventSeriesStateUnknown EventSeriesState = "Unknown"
|
|
||||||
)
|
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// EventList is a list of events.
|
// EventList is a list of events.
|
||||||
|
@ -95,19 +95,10 @@ type EventSeries struct {
|
|||||||
Count int32 `json:"count" protobuf:"varint,1,opt,name=count"`
|
Count int32 `json:"count" protobuf:"varint,1,opt,name=count"`
|
||||||
// Time when last Event from the series was seen before last heartbeat.
|
// Time when last Event from the series was seen before last heartbeat.
|
||||||
LastObservedTime metav1.MicroTime `json:"lastObservedTime" protobuf:"bytes,2,opt,name=lastObservedTime"`
|
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
|
// +k8s:deprecated=state,protobuf=3
|
||||||
State EventSeriesState `json:"state" protobuf:"bytes,3,opt,name=state"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type EventSeriesState string
|
|
||||||
|
|
||||||
const (
|
|
||||||
EventSeriesStateOngoing EventSeriesState = "Ongoing"
|
|
||||||
EventSeriesStateFinished EventSeriesState = "Finished"
|
|
||||||
EventSeriesStateUnknown EventSeriesState = "Unknown"
|
|
||||||
)
|
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||||
|
|
||||||
// EventList is a list of Event objects.
|
// EventList is a list of Event objects.
|
||||||
|
Loading…
Reference in New Issue
Block a user