go-container: хардкод S3_PREFIX c TODO-комментарием

This commit is contained in:
“Naeel”
2026-08-06 21:40:28 +04:00
parent 8110aad493
commit 35a07ca374
+7 -1
View File
@@ -73,8 +73,14 @@ func main() {
if hostname == "" { if hostname == "" {
hostname = "localhost:8080" hostname = "localhost:8080"
} }
// ── TEMPORARY HARDCODE ──────────────────────────────────────────────────
// S3 data is stored under old hostname prefix from the previous Go deploy.
// TODO: REMOVE after devops adds jsonEnv editing to containerk8s "modify".
// Then read from ENV: s3Prefix = os.Getenv("S3_PREFIX")
// And set in UI jsonEnv: "S3_PREFIX": "registry.kube5s.ru"
// ─────────────────────────────────────────────────────────────────────────
if s3Prefix == "" { if s3Prefix == "" {
s3Prefix = "registry.kube5s.ru" // default S3 prefix (old Go hostname) s3Prefix = "registry.kube5s.ru"
} }
endpoint := os.Getenv("S3_ENDPOINT") endpoint := os.Getenv("S3_ENDPOINT")