Fixed a bug with Workers not getting backend access because of Kubernetes changes

This commit is contained in:
frikky
2021-03-10 17:33:17 +01:00
parent 6c09375f33
commit 61f5159235
+3 -3
View File
@@ -101,7 +101,7 @@ func getThisContainerId() {
log.Printf("[INFO] Running containerized in Docker!") log.Printf("[INFO] Running containerized in Docker!")
default: default:
fCol = "0" // for backward-compatibility with production fCol = "3" // for backward-compatibility with production
log.Printf("[WARNING] RUNNING_MODE not set - defaulting to Docker (NOT Kubernetes).") log.Printf("[WARNING] RUNNING_MODE not set - defaulting to Docker (NOT Kubernetes).")
} }
@@ -119,14 +119,14 @@ func getThisContainerId() {
//docker-76c537e9a4b7c7233011f5d70e6b7f2d600b6413ac58a96519b8dca7a3f7117a.scope //docker-76c537e9a4b7c7233011f5d70e6b7f2d600b6413ac58a96519b8dca7a3f7117a.scope
} }
} else { } else {
if fCol != "0" { if fCol == "0" {
containerId = "shuffle-orborus" containerId = "shuffle-orborus"
log.Printf("[WARNING] Failed getting container ID: %s", err) log.Printf("[WARNING] Failed getting container ID: %s", err)
} }
} }
} }
log.Printf("Started with containerId %s", containerId) log.Printf(`[INFO] Started with containerId "%s"`, containerId)
} }
// Deploys the internal worker whenever something happens // Deploys the internal worker whenever something happens