flagger icon indicating copy to clipboard operation
flagger copied to clipboard

Turn flagger.app into redirects to fluxcd.io/flagger

Open dholbach opened this issue 2 years ago • 6 comments

With https://github.com/fluxcd/website/pull/903 being merged we have all the Flagger docs available at https://fluxcd.io/flagger/ (built from /fluxcd/website).

After a while of co-existence, we should turn flagger.app and docs.flagger.app into redirects.

dholbach avatar Apr 29 '22 12:04 dholbach

@stefanprodan @aryan9600 What would be involved in doing this move? Is it about setting up a small repository with a _redirects file that we can hook up to a Netlify instance, then cut over DNS through LinuxFoundation IT?

dholbach avatar Jul 13 '22 12:07 dholbach

Maybe let's work on docs.flagger.app first. The landing page can probably remain for some time.

dholbach avatar Aug 30 '22 06:08 dholbach

So it looks like this works:

  • https://github.com/dholbach/flagger-redirects for the setup of a minimal redirects farm
  • https://630db9dac9527a1402aee11f--bejewelled-gumption-27f3d3.netlify.app/ as the site it generates

Could we push the redirects config into a redirects branch in fluxcd/flagger?

Then in a next step, configure Netlify under Flux, then talk to LinuxFoundation IT people to change DNS?

dholbach avatar Aug 30 '22 07:08 dholbach

As per our discussion on Slack earlier, I added support for versioned links to dholbach/flagger-redirects as well.

e.g. https://bejewelled-gumption-27f3d3.netlify.app/v/main/install/flagger-install-on-kubernetes for https://docs.flagger.app/v/main/install/flagger-install-on-kubernetes gets redirected to https://fluxcd.io/flagger/install/flagger-install-on-kubernetes/ correctly.

dholbach avatar Aug 30 '22 11:08 dholbach

What I suggest we do next

  • [x] Push https://github.com/dholbach/flagger-redirects to e.g. a redirects branch under fluxcd/flagger
  • [x] Set up docs.flagger.app in Flux's Netlify to build from this ^
  • [x] Verify it works

--- above would not change anything in the real world just yet ---

Then:

  • [ ] Talk to LinuxFoundation IT to help us move DNS
  • [ ] Verify it works
  • [ ] Remove docs from fluxcd/flagger and leave instructions on where to find the docs from now on.
  • Done :fireworks:

dholbach avatar Aug 30 '22 12:08 dholbach

Tried e.g. https://flagger-docs.netlify.app/v/main/tutorials and https://flagger-docs.netlify.app/tutorials and it works.

dholbach avatar Aug 30 '22 15:08 dholbach