Fixed a bug with Workers not getting backend access because of Kubernetes changes
This commit is contained in:
@@ -101,7 +101,7 @@ func getThisContainerId() {
|
||||
log.Printf("[INFO] Running containerized in Docker!")
|
||||
|
||||
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).")
|
||||
}
|
||||
|
||||
@@ -119,14 +119,14 @@ func getThisContainerId() {
|
||||
//docker-76c537e9a4b7c7233011f5d70e6b7f2d600b6413ac58a96519b8dca7a3f7117a.scope
|
||||
}
|
||||
} else {
|
||||
if fCol != "0" {
|
||||
if fCol == "0" {
|
||||
containerId = "shuffle-orborus"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user