mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
This commit is contained in:
@@ -161,7 +161,7 @@ type MetricsWindows map[time.Duration]DerivedMetrics
|
||||
|
||||
type DerivedMetrics struct {
|
||||
// End time of all the time windows in Metrics
|
||||
EndTime util.Time `json:"endtime"`
|
||||
EndTime unversioned.Time `json:"endtime"`
|
||||
|
||||
Mean ResourceUsage `json:"mean"`
|
||||
Max ResourceUsage `json:"max"`
|
||||
|
@@ -162,7 +162,7 @@ type HorizontalPodAutoscalerStatus struct {
|
||||
|
||||
// LastScaleTimestamp is the last time the HorizontalPodAutoscaler scaled the number of pods.
|
||||
// This is used by the autoscaler to control how often the number of pods is changed.
|
||||
LastScaleTimestamp *util.Time
|
||||
LastScaleTimestamp *unversioned.Time
|
||||
}
|
||||
|
||||
// ResourceConsumption is an object for specifying average resource consumption of a particular resource.
|
||||
|
@@ -131,13 +131,13 @@ type JobStatus struct {
|
||||
Conditions []JobCondition
|
||||
|
||||
// CreationTime represents time when the job was created
|
||||
CreationTime util.Time
|
||||
CreationTime unversioned.Time
|
||||
|
||||
// StartTime represents time when the job was started
|
||||
StartTime util.Time
|
||||
StartTime unversioned.Time
|
||||
|
||||
// CompletionTime represents time when the job was completed
|
||||
CompletionTime util.Time
|
||||
CompletionTime unversioned.Time
|
||||
|
||||
// Active is the number of actively running pods.
|
||||
Active int
|
||||
@@ -162,8 +162,8 @@ const (
|
||||
type JobCondition struct {
|
||||
Type JobConditionType
|
||||
Status ConditionStatus
|
||||
LastHeartbeatTime util.Time
|
||||
LastTransitionTime util.Time
|
||||
LastHeartbeatTime unversioned.Time
|
||||
LastTransitionTime unversioned.Time
|
||||
Reason string
|
||||
Message string
|
||||
}
|
||||
|
Reference in New Issue
Block a user