From 65ceaccce5379c017fec5cc68b80bb2fe1e71ab2 Mon Sep 17 00:00:00 2001 From: Fabian Lopez Date: Mon, 29 Mar 2021 20:29:23 -0500 Subject: [PATCH 1/2] preparation for Revision api change --- pkg/apis/serving/v1/revision_types.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/apis/serving/v1/revision_types.go b/pkg/apis/serving/v1/revision_types.go index 8d401099c5a1..5111d339253e 100644 --- a/pkg/apis/serving/v1/revision_types.go +++ b/pkg/apis/serving/v1/revision_types.go @@ -157,6 +157,11 @@ type RevisionStatus struct { // ref: http://bit.ly/image-digests // +optional ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty"` + + // ActualReplicas reflects the PodAutoScalerStatus.ActualScale value in RevisionStatus. + ActualReplicas int32 `json:"actualReplicas,omitempty"` + // DesiredReplicas reflects the PodAutoScalerStatus.DesiredScale value in RevisionStatus. + DesiredReplicas int32 `json:"desiredReplicas,omitempty"` } // ContainerStatus holds the information of container name and image digest value From 2d4834cdbb275678a30c0fbb8d665dbff4a86779 Mon Sep 17 00:00:00 2001 From: Fabian Lopez Date: Wed, 31 Mar 2021 11:32:28 -0500 Subject: [PATCH 2/2] update description of new revision fields --- pkg/apis/serving/v1/revision_types.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/apis/serving/v1/revision_types.go b/pkg/apis/serving/v1/revision_types.go index 5111d339253e..1860bb5f7e01 100644 --- a/pkg/apis/serving/v1/revision_types.go +++ b/pkg/apis/serving/v1/revision_types.go @@ -158,9 +158,11 @@ type RevisionStatus struct { // +optional ContainerStatuses []ContainerStatus `json:"containerStatuses,omitempty"` - // ActualReplicas reflects the PodAutoScalerStatus.ActualScale value in RevisionStatus. + // ActualReplicas reflects the amount of ready pods running this revision. + // +optional ActualReplicas int32 `json:"actualReplicas,omitempty"` - // DesiredReplicas reflects the PodAutoScalerStatus.DesiredScale value in RevisionStatus. + // DesiredReplicas reflects the desired amount of pods running this revision. + // +optional DesiredReplicas int32 `json:"desiredReplicas,omitempty"` }