Skip to content

feat: migrate switch-region app - #1

Merged
cuisongliu merged 3 commits into
mainfrom
codex/migrate-switch-region
Jul 25, 2026
Merged

cuisongliu merged 3 commits into
mainfrom
codex/migrate-switch-region

Conversation

@cuisongliu

Copy link
Copy Markdown
Contributor

Summary

  • migrate the upstream frontend/providers/switch-region static runtime into this standalone repo
  • replace the old manifest-template deployment shape with a Helm chart and Sealos Kubefile package
  • add GitHub Actions for chart verification, Docker runtime image builds, and Sealos cluster image builds

Commit split

  1. feat: migrate switch-region runtime
  2. feat(deploy): add switch-region helm chart
  3. ci: add switch-region image builds

Deploy notes

  • old template parameters are not carried forward; chart values now use switchRegion.defaultRegion, switchRegion.regionMap, image, service, ingress, and Sealos URL settings
  • runtime redirect config is mounted through runtime-config.js
  • HTTP-only Sealos installs render urlScheme: "http" and urlPort from httpPort
  • Helm selectors keep app: desktop-switch-region for compatibility with the upstream manifest
  • first GHCR publish still needs package visibility set to public before public Sealos installs can pull the images

Verification

  • make deploy-verify
  • helm template desktop-switch-region deploy/charts/switch-region --namespace sealos --set disableHttps=true --set httpPort=80 --set cloudPort=443
  • bash -n deploy/entrypoint.sh .github/scripts/install.sh
  • actionlint .github/workflows/*.yml
  • ruby -e 'require "yaml"; ARGV.each { |f| YAML.load_file(f); puts "ok #{f}" }' .github/workflows/ci.yml .github/workflows/images.yml
  • git diff --check origin/main...HEAD

Docker and Sealos image builds are covered by workflow definitions; they were not executed locally because Docker and Sealos CLI are not installed on this machine.

@cuisongliu
cuisongliu merged commit 1260de5 into main Jul 25, 2026
1 check passed
@cuisongliu
cuisongliu deleted the codex/migrate-switch-region branch July 25, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant