From 0be807372c3ad24fd0d38c87d959294d7bc89506 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Mon, 15 Apr 2024 09:27:18 +0200 Subject: [PATCH] Do not add release name for upcoming releases We can infer the release name from the target date by just formatting it to display the month and year. Ref: https://github.com/kubernetes/website/pull/45770 Signed-off-by: Sascha Grunert --- cmd/schedule-builder/cmd/markdown.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/schedule-builder/cmd/markdown.go b/cmd/schedule-builder/cmd/markdown.go index e35bcea890f3..904bb3e111fa 100644 --- a/cmd/schedule-builder/cmd/markdown.go +++ b/cmd/schedule-builder/cmd/markdown.go @@ -286,11 +286,9 @@ func updatePatchSchedule(refTime time.Time, schedule PatchSchedule, eolBranches nextCherryPickDeadline := time.Date(latestDate.Year(), latestDate.Month(), cherryPickDay, 0, 0, 0, 0, time.UTC) nextTargetDate := time.Date(latestDate.Year(), latestDate.Month(), targetDateDay, 0, 0, 0, 0, time.UTC) - releaseName := nextTargetDate.Format("January 2006") - logrus.Infof("Adding new upcoming release for %s", releaseName) + logrus.Infof("Adding new upcoming release for %s", nextTargetDate.Format("January 2006")) newUpcomingReleases = append(newUpcomingReleases, &PatchRelease{ - Release: releaseName, CherryPickDeadline: nextCherryPickDeadline.Format(refDate), TargetDate: nextTargetDate.Format(refDate), })