Skip to content

Set main as the default branch #686

@TineoC

Description

@TineoC

This migration follows the official Kubernetes Default Branch Migration guide.

Phase 1: Pre-Rename (Preparation)

  • Mailing List Announcement: Send an email to the SIG ContribEx mailing list (kubernetes-sig-contribex@googlegroups.com) announcing the planned migration.
  • Slack Coordination: Join the #github-management channel on Kubernetes Slack to inform them of the upcoming rename and ask for any repo-specific advice (specifically for Netlify).
  • PR 1 (Contributor Site): PR #712 - Update _PULL_BASE_REF to main in cloudbuild.yaml.
  • PR 2 (Test-Infra): test-infra PR #36931 - Update config/jobs/image-pushing/k8s-staging-contributor-site.yaml.
    • Action: Add main to the branches list for all jobs to ensure CI coverage during the transition.
  • Internal Approval: Obtain approval from at least one other root approver (e.g., jberkus, jeefy, mrbobbytables) on this tracking issue.

Phase 2: Execution (Disruption Window)

  • Final GitHub Team Approval: Assign @kubernetes/owners (GitHub Management Team) to this issue for final sign-off.
  • Netlify Coordination: Coordinate with the GitHub Management Team in #github-management to update the Netlify production branch setting to main.
  • Branch Rename: Once GitHub Management gives the green light, use the GitHub UI (Settings > Branches) to rename master to main.

Phase 3: Post-Rename (Cleanup)

  • PR 3 (Test-Infra): test-infra PR #36932 - Create a follow-up PR in kubernetes/test-infra to remove now-obsolete master branch references for contributor-site.
  • PR 4 (Contributor Site):
    • PR #714 - Update CNCF Foundation and Memorials links to main.
    • PR #715 - Update kubernetes/community links to main.
    • Update other repository links (k/enhancements, test-infra, etc.) only after they migrate to main.
  • Final Announcement: Send a second email to kubernetes-sig-contribex@googlegroups.com with instructions for contributors to update their local clones:
    git checkout master
    git branch -m master main
    git fetch origin
    git branch -u origin/main main
    git remote set-head origin -a

Contacts Summary

  • SIG ContribEx: kubernetes-sig-contribex@googlegroups.com
  • GitHub Management: @kubernetes/owners on GitHub.
  • Slack: #github-management on Kubernetes Slack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions