From ee30c55dfc9a386c5fce38bdb08f43bd89db52f4 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Thu, 5 Apr 2018 17:37:21 -0300 Subject: [PATCH] Disable dynamic configuration in s390x and ppc64le (#2298) --- cmd/nginx/flags.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/nginx/flags.go b/cmd/nginx/flags.go index eb57e7bd29..397d591a4a 100644 --- a/cmd/nginx/flags.go +++ b/cmd/nginx/flags.go @@ -20,6 +20,7 @@ import ( "flag" "fmt" "os" + "runtime" "time" "github.com/golang/glog" @@ -194,6 +195,12 @@ func parseFlags() (bool, *controller.Configuration, error) { glog.Warningf("Check of SSL certificate chain is disabled (--enable-ssl-chain-completion=false)") } + if *dynamicConfigurationEnabled && (runtime.GOARCH == "s390x" || runtime.GOARCH == "ppc64le") { + b := false + dynamicConfigurationEnabled = &b + glog.Warningf("Disabling dynamic configuration feature (LuaJIT is not available in s390x and ppc64le)") + } + config := &controller.Configuration{ APIServerHost: *apiserverHost, KubeConfigFile: *kubeConfigFile,