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

Discuss rename of permanent-redirect and temporal-redirect annotation #2864

Closed
Stono opened this issue Jul 28, 2018 · 5 comments
Closed

Discuss rename of permanent-redirect and temporal-redirect annotation #2864

Stono opened this issue Jul 28, 2018 · 5 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@Stono
Copy link
Contributor

Stono commented Jul 28, 2018

Hey,
The work I did in #2834 allows you to control the status code used for permanent-redirects as there are a couple of valid options (301, 308 etc).

However the annotation we ended up using was called http-redirect-code which implies it could also be used to set short term redirects too (eg 302).

Whilst digging in that code, I also noticed there is another undocumented annotation temporal-redirect which appears to 302.

It's all getting a bit confusing, so I propose simply two annotations: http-redirect and http-redirect-code and getting rid of permanent-redirect and temporal-redirect which would then just allow people to use whichever of the 5 valid redirect codes they chose (301, 302, 303, 307, 308).

Naturally however this would be a breaking change so this issue is to talk about that...

@Stono Stono changed the title Discuss rename of permanent-redirect annotation Discuss rename of permanent-redirect and temporal-redirect annotation Jul 28, 2018
@Stono
Copy link
Contributor Author

Stono commented Jul 28, 2018

I have also just noticed that there is a ConfigMap setting:

	// HTTPRedirectCode sets the HTTP status code to be used in redirects.
	// Supported codes are 301,302,307 and 308
	// Default: 308
	HTTPRedirectCode int `json:"http-redirect-code"`

This appears to only be used in http -> https redirects. So I believe this should be renamed to ssl-redirect-code, as that is what it ultimately impacts.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 26, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 25, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

3 participants