refresh observed rollout-id for BatchRelease (#193)

Signed-off-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com>
Co-authored-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com>
This commit is contained in:
Wei-Xiang Sun 2023-12-27 11:16:07 +08:00 committed by GitHub
parent 1e84129ff1
commit 678d4d2b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ func refreshStatus(release *v1beta1.BatchRelease, newStatus *v1beta1.BatchReleas
if len(newStatus.ObservedReleasePlanHash) == 0 {
newStatus.ObservedReleasePlanHash = util.HashReleasePlanBatches(&release.Spec.ReleasePlan)
}
newStatus.ObservedRolloutID = release.Spec.ReleasePlan.RolloutID
}
func isPlanFinalizing(release *v1beta1.BatchRelease) bool {