Skip to content

Move from bit.ly URLs to rel.k8s.io for the release team #8109

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions apps/k8s-io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ Vanity URL(s)

NOTE: please see k8s.io/k8s.io/configmap-nginx.yaml for `server` definitions

Redirections
====
# Redirections

## go.k8s.io Redirects
- https://go.k8s.io/api-review
- https://go.k8s.io/bot-commands
- https://go.k8s.io/calendar
Expand Down Expand Up @@ -67,6 +68,23 @@ Redirections
- https://go.k8s.io/contact/wg-lts
- https://go.k8s.io/contact/committee-steering

## rel.k8s.io Redirects

### Direct Redirects
- https://rel.k8s.io/ → https://github.com/kubernetes/kubernetes/releases
- https://rel.k8s.io/k8s-release-cal → https://calendar.google.com/calendar/embed?src=kipmnllvl17vl9m98jen6ujcrs%40group.calendar.google.com
- https://rel.k8s.io/k8s-sig-release-videos → https://youtube.com/playlist?list=PL69nYSiGNLP3QKkOsDsO6A0Y1rhgP84iZ&si=Mi095CYuJuz8LjN-

### Version-specific Redirects

Example:
- https://rel.k8s.io/vXYY/releasemtg
- https://rel.k8s.io/vXYY/retro
- https://rel.k8s.io/v1XYY/contacts (Note: Access is restricted through Google Authorization)

For all release versions, URLs follow this pattern:
- https://rel.k8s.io/vXYY/{keyword} → https://github.com/kubernetes/sig-release/tree/master/releases/release-X.YY/links.md#{keyword}


NOTE: please see configmap-nginx.yaml for rewrite rules.

Expand Down
8 changes: 5 additions & 3 deletions apps/k8s-io/configmap-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,11 @@ data:
server_name releases.k8s.io rel.k8s.io releases.kubernetes.io rel.kubernetes.io;
listen 80;

location / {
rewrite ^/$ https://github.com/kubernetes/kubernetes/releases redirect;
rewrite ^/([^/]*)(/.*)?$ https://github.com/kubernetes/kubernetes/tree/$1$2 redirect;
rewrite ^/$ https://github.com/kubernetes/kubernetes/releases redirect;
rewrite ^/k8s-release-cal https://calendar.google.com/calendar/embed?src=kipmnllvl17vl9m98jen6ujcrs%40group.calendar.google.com redirect;
rewrite ^/k8s-sig-release-videos https://youtube.com/playlist?list=PL69nYSiGNLP3QKkOsDsO6A0Y1rhgP84iZ&si=Mi095CYuJuz8LjN- redirect;
rewrite ^/v([0-9])([0-9]+)/([a-zA-Z]+)$ https://github.com/kubernetes/sig-release/tree/master/releases/release-$1.$2/links.md#$3 redirect;
rewrite ^/([^/]*)(/.*)?$ https://github.com/kubernetes/kubernetes/tree/$1$2 redirect;
}
}

Expand Down