Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: handle new major release of kubernetes #62

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

tormath1
Copy link
Contributor

When there is a new major of Kubernetes there is no previousPatches in the schedule.yaml file:

- release: 1.30
  releaseDate: 2024-04-17
  next:
    release: 1.30.1
    cherryPickDeadline: 2024-05-10
    targetDate: 2024-05-15
  maintenanceModeStartDate: 2025-04-28
  endOfLifeDate: 2025-06-28

In this case, we extend the current release with .0 to build the full version.

Closes: #61

Testing done

$ KBS_VERS=$(curl -fsSL --retry-delay 1 --retry 60 --retry-connrefused \
                --retry-max-time 60 --connect-timeout 20  \
                https://raw.githubusercontent.com/kubernetes/website/main/data/releases/schedule.yaml \
                | yq -r '.schedules[] | .previousPatches[0] // (.release = .release + ".0") | .release' \
                | awk '{print "kubernetes-v"$1}')
$ KBS_VERS_ARRAY=(${KBS_VERS})
$ printf "%s\n" "${KBS_VERS_ARRAY[@]}"
kubernetes-v1.30.0
kubernetes-v1.29.3
kubernetes-v1.28.8
kubernetes-v1.27.12

When there is a new major of Kubernetes there is no `previousPatches` in the
`schedule.yaml` file:
```yaml
- release: 1.30
  releaseDate: 2024-04-17
  next:
    release: 1.30.1
    cherryPickDeadline: 2024-05-10
    targetDate: 2024-05-15
  maintenanceModeStartDate: 2025-04-28
  endOfLifeDate: 2025-06-28
```

In this case, we extend the current `release` with `.0` to build the
full version.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 requested a review from a team April 18, 2024 12:28
@tormath1 tormath1 self-assigned this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubernetes release does not work with current 1.30
2 participants