go-container: хардкод S3_PREFIX c TODO-комментарием
This commit is contained in:
+7
-1
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user