kubernetes / test-infra

Test infrastructure for the Kubernetes project.
Apache License 2.0
3.83k stars 2.65k forks source link

Prow control plane migration (k8s-prow > k8s-infra-prow) #33350

Open michelle192837 opened 2 months ago

michelle192837 commented 2 months ago

Using this to track what's done/to-do, and communicate higher-traffic updates. Broader updates should go to https://groups.google.com/a/kubernetes.io/g/dev/c/qzNYpcN5la4.

Based on the proposal doc at https://docs.google.com/document/d/1erBhuCwY26d0UfPbzt8lEj6bYT2hOUKzc2j36YHVqfM.

Pre-migration:

Right before migration:

During migration:
Begins \~10:30am PT, Wednesday August 21

Post-migration:

Other resources may need to remain in the k8s-prow project (esp. images)

michelle192837 commented 2 months ago

/sig testing /sig k8s-infra

BenTheElder commented 2 months ago

Delete logs buckets

We should probably just drop write permissions and park the buckets, when we delete them the name can be re-created by someone else and for a bucket that we're still widely using as of this morning that's iffy.

michelle192837 commented 2 months ago

Keep forgetting about that point >< Updated!

michelle192837 commented 2 months ago

Scale down PR for k8s-prow at https://github.com/kubernetes/test-infra/pull/33351#event-13964346933

And I believe the corresponding scale-up is https://github.com/kubernetes/k8s.io/pull/7141

BenTheElder commented 2 months ago

resolving issue with webhook delivery: https://kubernetes.slack.com/archives/C01672LSZL0/p1724268478788619

michelle192837 commented 2 months ago

PR to switch DNS over: https://github.com/kubernetes/k8s.io/pull/7206

BenTheElder commented 2 months ago
  • Turn down old Deck and old CRs
  • Delete remaining jobs on old Prow

Let's do these now.

  • Ensure no repositories are registered with k8s-prow

Going to confirm, but I think we already fully transitioned the webhook config.

  • Delete Prow components in k8s-prow

No big harm leaving them scaled down but I think we're also ready for this.

  • Remove deprecated code/references (for handling k8s-prow control plane)

This is going to take a bit but we should start on that and point people to the k8s.io configs. We could probably file a seperate issue to coordinate cleaning up references and shard out that work.

I think mainly we need to sort out rotating off of gs://kubernetes-jenkins still, and that probably deserves it's own migration tracking issue / plan (it won't be super complex, but it does have a few parts and some follow-up, and it's not strictly required for the control plane migration).

  • Add TTL and remove permissions for gs://kubernetes-jenkins

Already has a TTL, crossing off that part. Removing permissions will have to be after we rotate the buckets.

BenTheElder commented 2 months ago

https://github.com/kubernetes/k8s.io/pull/7205 also needs doing soon I think.

michelle192837 commented 2 months ago

I can handle deletion/turndown for the old CRs and components as well. (And clean up the deployment config while I'm at it).

ETA: lol nevermind, Ben got there first XD