Skip to content

Commit

Permalink
fix: generation
Browse files Browse the repository at this point in the history
Signed-off-by: maanugh <[email protected]>
  • Loading branch information
maanugh committed Nov 25, 2024
1 parent e8445b1 commit 536a949
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cmd/describe/describe_rollout.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ func extractRolloutInfo(obj interface{}) *RolloutInfo {
info.Namespace = r.Namespace
info.Phase = string(r.Status.Phase)
info.Message = r.Status.Message
info.ObservedGeneration = r.Status.ObservedGeneration
info.Generation = r.GetObjectMeta().GetGeneration()
info.CurrentStepIndex = r.Status.CanaryStatus.CurrentStepIndex
info.CurrentStepState = string(r.Status.CanaryStatus.CurrentStepState)
Expand All @@ -560,6 +561,7 @@ func extractRolloutInfo(obj interface{}) *RolloutInfo {
info.Message = r.Status.Message
info.ObservedGeneration = r.Status.ObservedGeneration
info.Generation = r.GetObjectMeta().GetGeneration()
info.CurrentStepIndex = r.Status.CanaryStatus.CurrentStepIndex
info.CurrentStepState = string(r.Status.CanaryStatus.CurrentStepState)
info.WorkloadRef = RolloutWorkloadRef{
Kind: r.Spec.ObjectRef.WorkloadRef.Kind,
Expand Down

0 comments on commit 536a949

Please sign in to comment.