mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 19:28:05 +08:00
feat: Add an env to the worker to prevent mesh from checking the port (#1768)
Signed-off-by: Qi Zhang <smallqi1@163.com>
This commit is contained in:
parent
9735eeb979
commit
bc37f891c4
@ -275,6 +275,9 @@ func createTCPDefaultPluginContainer(as *typesv1.AppService, pluginID string, en
|
||||
}
|
||||
|
||||
func setSidecarContainerLifecycle(as *typesv1.AppService, con *corev1.Container, pluginConfig *api_model.ResourceSpec) {
|
||||
if strings.ToLower(os.Getenv("GLOBAL_DISABLE_SIDECAR_CHECK")) == "true" {
|
||||
return
|
||||
}
|
||||
if strings.ToLower(as.ExtensionSet["disable_sidecar_check"]) != "true" {
|
||||
var port int
|
||||
if as.ExtensionSet["sidecar_check_port"] != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user