Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Harden v6 upgrade release proofs

rcourtman1f84fd3dd00e
diff --git a/docs/UPGRADE_v6.md b/docs/UPGRADE_v6.md
index 4041abbd3a..1bf452ef31 100644
--- a/docs/UPGRADE_v6.md
+++ b/docs/UPGRADE_v6.md
@@ -112,11 +112,19 @@ and keep a rollback path available, but v6 is now the supported stable line.
### Unified Navigation (Bookmarks and Deep Links)
-Legacy page aliases have been removed. Use canonical unified routes only.
+Pulse v6.0.0-rc.6 and later ship with the platform-shaped top-level
+navigation existing v5 operators already know: Proxmox, Docker, Kubernetes,
+TrueNAS, vSphere, Standalone, Alerts, Patrol, and Settings.
+
+The backend unified resource model and `/api/resources` contract remain
+canonical, but the retired rc.1 through rc.5 `/infrastructure`, `/workloads`,
+`/storage`, and `/recovery` layout is not the shipped v6 user interface.
- Reference: `docs/MIGRATION_UNIFIED_NAV.md`
-- Optional migration aid: enable the "Classic platform shortcuts" bar (Settings → System → General).
-- Optional preference: switch to **Classic** navigation style (Settings → System → General). This is stored per browser.
+- If you used rc.1 through rc.5, update bookmarks or runbooks from the retired
+ unified routes to the platform-shaped equivalents listed in that guide.
+- If you are upgrading directly from v5, start from the familiar platform pages
+ rather than looking for the temporary unified pages from early v6 RCs.
### API Changes
diff --git a/scripts/installtests/provider_msp_deploy_test.go b/scripts/installtests/provider_msp_deploy_test.go
index 627d4b5388..20c5206315 100644
--- a/scripts/installtests/provider_msp_deploy_test.go
+++ b/scripts/installtests/provider_msp_deploy_test.go
@@ -20,8 +20,11 @@ func TestProviderMSPDeployComposeIsProviderModeAndStripeFree(t *testing.T) {
t.Fatalf("provider MSP compose must be valid YAML: %v", err)
}
text := string(composeBytes)
- assertContainsAll(t, text,
+ assertContainsAny(t, text,
"CP_CONTROL_PLANE_MODE=provider_hosted_msp",
+ "CP_CONTROL_PLANE_MODE=${CP_CONTROL_PLANE_MODE:-provider_hosted_msp}",
+ )
+ assertContainsAll(t, text,
"CP_DATA_DIR=${PULSE_PROVIDER_MSP_DATA_DIR:-/data}",
"CP_PROVIDER_MSP_LICENSE_FILE=/run/secrets/provider_msp_license",
"CP_DOCKER_NETWORK=${PULSE_PROVIDER_MSP_DOCKER_NETWORK:-pulse-provider-msp}",
@@ -299,6 +302,16 @@ func assertContainsAll(t *testing.T, text string, required ...string) {
}
}
+func assertContainsAny(t *testing.T, text string, allowed ...string) {
+ t.Helper()
+ for _, needle := range allowed {
+ if strings.Contains(text, needle) {
+ return
+ }
+ }
+ t.Fatalf("missing any of %q in:\n%s", allowed, text)
+}
+
func assertNotContainsAny(t *testing.T, text string, forbidden ...string) {
t.Helper()
for _, needle := range forbidden {
diff --git a/tests/migration/v5_real_exchange_upgrade_test.go b/tests/migration/v5_real_exchange_upgrade_test.go
index 574c30e3b1..6afedda14b 100644
--- a/tests/migration/v5_real_exchange_upgrade_test.go
+++ b/tests/migration/v5_real_exchange_upgrade_test.go
@@ -306,6 +306,8 @@ func startManagedLicenseServer(
) *managedLicenseServer {
t.Helper()
addr := allocateManagedLicenseServerAddr(t)
+ stripeIPsPath := filepath.Join(t.TempDir(), "stripe-ips.txt")
+ require.NoError(t, os.WriteFile(stripeIPsPath, []byte("127.0.0.1/32\n"), 0o600))
logBuf := &bytes.Buffer{}
cmd := exec.Command(binaryPath)
cmd.Env = append(os.Environ(),
@@ -313,6 +315,8 @@ func startManagedLicenseServer(
"PULSE_LICENSE_DATA_DIR="+dataDir,
"PULSE_LICENSE_PRIVATE_KEY="+base64.StdEncoding.EncodeToString(privateKey.Seed()),
"PULSE_LICENSE_PLANS="+plansJSON,
+ "PULSE_LICENSE_STRIPE_IPS_FILE="+stripeIPsPath,
+ "PULSE_LICENSE_STRIPE_IPS_ENFORCE=true",
"PULSE_LICENSE_V6_ENABLED=true",
)
cmd.Stdout = logBuf